Mathematica 9 is now available

Drop

Drop[list, n] gives list with its first n elements dropped.
Drop[list, -n] gives list with its last n elements dropped.
Drop[list, {n}] gives list with its  element dropped.
Drop[list, {n, m}] gives list with elements m through n dropped.
Drop[list, {n, m, s}] gives list with elements m through n in steps of s dropped.
Drop[list,  ,  , ... ] gives a nested list in which elements specified by  have been dropped at level i in list.

• Examples: Drop[{a, b, c, d, e}, 2] LongRightArrow  .
Drop[{a, b, c, d, e}, -3] LongRightArrow  .
Drop[list,  ,  ] effectively drops all elements except those in a submatrix of list.
• Example: Drop[{{a, b, c}, {d, e, f}}, 1, -1] LongRightArrow  .
• See also:
ColumnDrop, Part, Partition, Select, Take.

Examples

Using InstantCalculators

Here are the InstantCalculators for the Drop 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 Drop Function Controller.

This gives the list with the first element dropped.

This drops the last element.

This drops the third through fifth elements from the list.



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.