take -package:base -package:containers -package:conduit -package:text

O(1) take n, applied to a ByteString xs, returns the prefix of xs of length n, or xs itself if n > length xs.
O(n/c) take n, applied to a ByteString xs, returns the prefix of xs of length n, or xs itself if n > length xs.
O(n) take n, applied to a ShortByteString xs, returns the prefix of xs of length n, or xs itself if n > length xs. Note: copies the entire byte array
O(1) Yield at the first n elements without copying. The vector may contain less than n elements, in which case it is returned unchanged.
The first n elements
The first n elements
O(1) Yield the first n elements without copying. The vector may contain less than n elements, in which case it is returned unchanged.
Take the n first elements of the mutable vector without making a copy. For negative n, the empty vector is returned. If n is larger than the vector's length, the vector is returned unchanged.
Take the n first elements of the mutable vector without making a copy. For negative n, the empty vector is returned. If n is larger than the vector's length, the vector is returned unchanged.
O(1) Yield at the first n elements without copying. The vector may contain less than n elements, in which case it is returned unchanged.
Take the n first elements of the mutable vector without making a copy. For negative n, the empty vector is returned. If n is larger than the vector's length, the vector is returned unchanged.
O(1) Yield at the first n elements without copying. The vector may contain less than n elements, in which case it is returned unchanged.
Take the n first elements of the mutable vector without making a copy. For negative n, the empty vector is returned. If n is larger than the vector's length, the vector is returned unchanged.
O(1) Yield at the first n elements without copying. The vector may contain less than n elements, in which case it is returned unchanged.
Take the n first elements of the mutable vector without making a copy. For negative n, the empty vector is returned. If n is larger than the vector's length, the vector is returned unchanged.
Consume exactly n bytes of input.
Consume exactly n characters of input.
Consume n bytes of input.
take n s returns the first n characters of s. If s has less than n characters, then we return the whole of s.
take n s returns the first n characters of s. If s has less than n characters, then we return the whole of s.
take n s returns the first n characters of s. If s has less than n characters, then we return the whole of s.
take n s returns the first n characters of s. If s has less than n characters, then we return the whole of s.
take n, applied to a list xs, returns the prefix of xs of length n, or xs itself if n >= length xs.
>>> take 5 "Hello World!"
"Hello"

>>> take 3 [1,2,3,4,5]
[1,2,3]

>>> take 3 [1,2]
[1,2]

>>> take 3 []
[]

>>> take (-1) [1,2]
[]

>>> take 0 [1,2]
[]
It is an instance of the more general genericTake, in which n may be of any integral type.
Take the first n byte of a bytearray