Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
Documentation Center
Search

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] LongRightArrow

.
Insert[{a, b, c}, x, {{1}, {-1}}] LongRightArrow
.
Insert[{{a, b}, {c, d}}, x, {2, 1}] LongRightArrow
.
• See also:
Append, Drop, Position, Prepend, Take.

Examples

Using InstantCalculators

Here are the InstantCalculators for the Insert function. Enter the parameters for your calculation and click Calculate to see the result.

Entering Commands Directly

You 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.

This inserts b in the first and second positions of this list.


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: