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] . • Drop[{a, b, c, d, e}, -3] . • Drop[list, , ] effectively drops all elements except those in a submatrix of list. • Example: Drop[{{a, b, c}, {d, e, f}}, 1, -1] . • See also: ColumnDrop, Part, Partition, Select, Take.
Examples Using InstantCalculatorsHere are the InstantCalculators for the Drop function. Enter the parameters for your calculation and click Calculate to see the result.
Out[1]= |  |
Out[2]= |  |
Out[3]= |  |
Out[4]= |  |
Entering Commands DirectlyYou 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.
Out[5]= |  |
This drops the last element.
Out[6]= |  |
This drops the third through fifth elements from the list.
Out[7]= |  |
|