drop -package:text
drop n xs returns the suffix of
xs after the
first
n elements, or
[] if
n >= length
xs.
It is an instance of the more general
genericDrop, in which
n may be of any integral type.
Examples
>>> drop 6 "Hello World!"
"World!"
>>> drop 3 [1,2,3,4,5]
[4,5]
>>> drop 3 [1,2]
[]
>>> drop 3 []
[]
>>> drop (-1) [1,2]
[1,2]
>>> drop 0 [1,2]
[1,2]
drop n xs drops the first
n elements off the
front of the sequence
xs.
O(1) drop n xs returns the suffix of
xs after the first
n elements, or
empty if
n > length xs.
O(n/c) drop n xs returns the suffix of
xs after the first
n elements, or
empty if
n > length xs.
O(n) drop n xs returns the suffix of
xs after the first n elements, or
empty if
n >
length xs.
Note: copies the entire byte array
Elements of a sequence after the first
i. If
i is negative,
drop i s yields the whole
sequence. If the sequence contains fewer than
i elements, the
empty sequence is returned.
O(1) Yield all but the first n elements without
copying. The vector may contain less than n elements, in
which case an empty vector is returned.
All but the first n elements
All but the first n elements
O(1) Yield all but the first n elements without
copying. The vector may contain less than n elements, in
which case an empty vector is returned.
Drop the n first element of the mutable vector without making
a copy. For negative n, the vector is returned unchanged. If
n is larger than the vector's length, the empty vector is
returned.
Drop the n first element of the mutable vector without making
a copy. For negative n, the vector is returned unchanged. If
n is larger than the vector's length, the empty vector is
returned.
O(1) Yield all but the first n elements without
copying. The vector may contain less than n elements, in
which case an empty vector is returned.
Drop the n first element of the mutable vector without making
a copy. For negative n, the vector is returned unchanged. If
n is larger than the vector's length, the empty vector is
returned.
O(1) Yield all but the first n elements without
copying. The vector may contain less than n elements, in
which case an empty vector is returned.
Drop the n first element of the mutable vector without making
a copy. For negative n, the vector is returned unchanged. If
n is larger than the vector's length, the empty vector is
returned.
O(1) Yield all but the first n elements without
copying. The vector may contain less than n elements, in
which case an empty vector is returned.
Drop the n first element of the mutable vector without making
a copy. For negative n, the vector is returned unchanged. If
n is larger than the vector's length, the empty vector is
returned.
Drop delimiters from the output.
dropWhile p xs returns the suffix remaining after
takeWhile p xs.
Examples
>>> dropWhile (< 3) [1,2,3,4,5,1,2,3]
[3,4,5,1,2,3]
>>> dropWhile (< 9) [1,2,3]
[]
>>> dropWhile (< 0) [1,2,3]
[1,2,3]