Wolfram: List. Add Element
Insert
Insert[list, new, n]-
- Insert an element at index n.
- If n is negative, count from right.
- Return a new list.
Insert[ {3, 4}, x, 2 ] (* {3, x, 4} *) Insert[ {3, 4}, x, -1 ] (* {3, 4, x} *) Insert[list, new, positionSpec]-
- Insert an element at Position positionSpec
Insert[ {3, {4}}, x, {2,1} ] (* {3, {x, 4}} *) Insert[list, new, {pos1, pos2, etc }]-
insert an element at several positions
Insert[ {{1,0}, {2,0}, {3,0}}, x, {{2}, {3,1}} ] (* {{1, 0}, x, {2, 0}, {x, 3, 0}} *)
Prepend, Append
PrependTo, AppendTo (Modify Variable)
Wolfram. List Operations, and Loop, Iteration, Recursion
- Wolfram: List Operations
- Wolfram: List. Create (Table)
- Wolfram: Create Flat List (Range)
- Wolfram: List. Get Parts
- Wolfram: List. Add Element
- Wolfram: List. Delete Element
- Wolfram: List. Change Element
- Wolfram: List. Check Exist
- Wolfram: List. Join, Union, Intersection, Difference
- Wolfram: List. Min, Max
- Wolfram: List. Filter
- Wolfram: List. Sort Reverse Ordering
- Wolfram: Flatten
- Wolfram: Riffle (Add at Every Nth)
- Wolfram: RotateLeft
- Wolfram: Padding
- Wolfram: List. Partition, Reshape, Split, Gather
- Wolfram: Transpose
- Wolfram: List. Same Items Counts, Tally, Group
- Wolfram: List. Combinatorics
- Wolfram: Iteration
- Wolfram: Map Function to List
- Wolfram: Scan (foreach)
- Wolfram: Recursion
- Wolfram: Fold (reduce)
- Wolfram: Loop