tail
Warning: This is a partial function, it throws an error on empty
lists. Replace it with drop 1, or use pattern matching or
uncons instead. Consider refactoring to use
Data.List.NonEmpty.
Extract the possibly-empty tail of the stream.
O(1) Extract the elements after the head of a ByteString, which
must be non-empty. An exception will be thrown in the case of an empty
ByteString.
This is a partial function, consider using
uncons instead.
O(1) Extract the elements after the head of a ByteString, which
must be non-empty.
This is a partial function, consider using
uncons instead.
O(n) Extract the elements after the head of a ShortByteString,
which must be non-empty. An exception will be thrown in the case of an
empty ShortByteString.
This is a partial function, consider using
uncons instead.
Note: copies the entire byte array
O(1) Returns all characters after the head of a
Text,
which must be non-empty. This is a partial function, consider using
uncons instead.
O(1) Yield all but the first element without copying. The
vector may not be empty.
All but the first element
All but the first element
O(1) Yield all but the first element without copying. The
vector may not be empty.
Drop the first element of the mutable vector without making a copy. If
the vector is empty, an exception is thrown.
Drop the first element of the mutable vector without making a copy. If
the vector is empty, an exception is thrown.
O(1) Yield all but the first element without copying. The
vector may not be empty.
Drop the first element of the mutable vector without making a copy. If
the vector is empty, an exception is thrown.
O(1) Yield all but the first element without copying. The
vector may not be empty.
Drop the first element of the mutable vector without making a copy. If
the vector is empty, an exception is thrown.
O(1) Yield all but the first element without copying. The
vector may not be empty.
Drop the first element of the mutable vector without making a copy. If
the vector is empty, an exception is thrown.
Extract the elements after the head of a list, which
must be non-empty.
>>> tail [1, 2, 3]
[2,3]
>>> tail [1]
[]
>>> tail []
*** Exception: Prelude.tail: empty list
WARNING: This function is partial. You can use case-matching or
uncons instead.