# take package:vector

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

*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 `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,

*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 `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,

*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 `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,

*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 `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,

*O(n)* Yield the longest prefix of elements satisfying the
predicate. Current implementation is not copy-free, unless the result
vector is fused away.

Longest prefix of elements that satisfy the predicate

Longest prefix of elements that satisfy the predicate

Longest prefix of elements that satisfy the monadic predicate

Longest prefix of elements that satisfy the predicate

Longest prefix of elements that satisfy the monadic predicate

*O(n)* Yield the longest prefix of elements satisfying the
predicate. Current implementation is not copy-free, unless the result
vector is fused away.

*O(n)* Yield the longest prefix of elements satisfying the
predicate. Current implementation is not copy-free, unless the result
vector is fused away.

*O(n)* Yield the longest prefix of elements satisfying the
predicate. Current implementation is not copy-free, unless the result
vector is fused away.

*O(n)* Yield the longest prefix of elements satisfying the
predicate. Current implementation is not copy-free, unless the result
vector is fused away.

*O(1)* Yield the first `n` elements without copying. The
vector must contain at least `n` elements but this is not
checked.