This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

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 n^(th) element dropped.
Drop[list, {m, n}]
gives list with elements m through n dropped.
Drop[list, {m, n, s}]
gives list with elements m through n in steps of s dropped.
Drop[list, seq1, seq2, ...]
gives a nested list in which elements specified by seqi have been dropped at level i in list.
  • Drop uses the standard sequence specification:
Allall elements
Noneno elements
nelements 1 through n
-nlast n elements
{n}element n only
{m,n}elements m through n inclusive
{m,n,s}elements m through n in steps of s
  • Drop can be used on an object with any head, not necessarily List.
  • For a matrix, Drop[list, seq1, seq2] effectively drops all elements except those in a submatrix of list.
New in 1 | Last modified in 4