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). • 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. • New in Version 1; modified in 4.
|