take `n`, applied to a list `xs`, returns the
prefix of `xs` of length `n`, or `xs` itself if
`n >= length xs`.
`n` may be of any integral type.

>>> 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

Take a given number of entries in key order, beginning with the
smallest keys.

take n = fromDistinctAscList . take n . toAscList

The first `i` elements of a sequence. If
`i` is negative, `take i s` yields the empty
sequence. If the sequence contains fewer than `i` elements, the
whole sequence is returned.

Take a given number of elements in order, beginning with the smallest
ones.

take n = fromDistinctAscList . take n . toAscList

The first `n` elements

The first `n` elements

Take `n` first elements of the mutable vector without making a
copy. For negative `n` empty vector is returned. If `n`
is larger than vector's length empty vector is returned,

Take `n` first elements of the mutable vector without making a
copy. For negative `n` empty vector is returned. If `n`
is larger than vector's length empty vector is returned,

Take `n` first elements of the mutable vector without making a
copy. For negative `n` empty vector is returned. If `n`
is larger than vector's length empty vector is returned,

Consume exactly `n` bytes of input.