Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Drop

Usage

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 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,  ,  , ... ] gives a nested list in which elements specified by  have been dropped at level i in list.


Notes

Drop uses the standard sequence specification (see Section A.3.5).
• Examples: Drop[ a,b,c,d,e , 2]LongRightArrow .
Drop[ a,b,c,d,e , -3]LongRightArrow .
Drop[Range[7],  2, 5, 2 ]LongRightArrow .
Drop can be used on an object with any head, not necessarily List.
Drop[list,  ,  ] effectively drops all elements except those in a submatrix of list.
• Example: Drop[  a,b,c , d,e,f  , 1, -1]LongRightArrow .
Drop works on SparseArray objects.
• See also: Rest, Most, StringDrop, Take, Cases.
• Related package: LinearAlgebra`MatrixManipulation`.
• New in Version 1; modified in 4.


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



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