drop

Returns elements of a sequence except those from either end.  If k >= 0 return a new sequence consisting of all but the first k elements of seq, otherwise return a new sequence consisting of all but the last k elements of seq.  For example:

drop(#(0, 5, 10, 15, 20, 25, 30), 5)  ⇒ #(25, 30)
drop(#(0, 3, 6, 9, 12, 15, 18), -3) ⇒ #(0, 3, 6, 9)

Exported from

Modifiers

open

Arguments

seqAn instance of <sequence>.
kAn instance of <integer>.

Values

new-sequenceAn instance of <sequence>.
Sequence-Utilities, written by Matthias Hölzl, provides common or oft-used operations performed on <sequence>s.
The class of collections whose keys are consecutive integers starting from zero.
The class of integers.