Insert• Insert[list, elem, n] inserts elem at position n in list. If n is negative, the position is counted from the end. • Insert[expr, elem, {i, j, ... }] inserts elem at position {i, j, ... } in expr. • Insert[expr, elem, {{ , , ... }, { , , ... }, ... }] inserts elem at several positions. • Examples: Insert[{a, b, c}, x, 2] . • Insert[{a, b, c}, x, {{1}, {-1}}] . • Insert[{{a, b}, {c, d}}, x, {2, 1}] . • See also: Append, Drop, Position, Prepend, Take.
Examples Using InstantCalculatorsHere are the InstantCalculators for the Insert function. Enter the parameters for your calculation and click Calculate to see the result.
Out[1]= |  |
Out[2]= |  |
Entering Commands DirectlyYou can paste a template for this command via the Text Input button on the Insert Function Controller. This inserts d into the fourth position of this list.
Out[3]= |  |
This inserts b in the first and second positions of this list.
Out[4]= |  |
|