last package:rio

O(n/c) Extract the last element of a ByteString, which must be finite and non-empty.
O(1) Extract the last element of a ByteString, which must be finite and non-empty. An exception will be thrown in the case of an empty ByteString.
Extract the last element of a list, which must be finite and non-empty.
Extract the last element of the stream.
O(n/c) Returns the last character of a Text, which must be non-empty. Subject to fusion.
O(1) Returns the last character of a Text, which must be non-empty. Subject to fusion.
O(1) Last element
O(1) Last element
O(1) Last element
O(1) Last element
O(1) Last element of a vector in a monad. See indexM for an explanation of why this is useful.
O(1) Last element of a vector in a monad. See indexM for an explanation of why this is useful.
O(1) Last element of a vector in a monad. See indexM for an explanation of why this is useful.
O(1) Last element of a vector in a monad. See indexM for an explanation of why this is useful.
_last gives you access to the last element of the list:
>>> "Hello." ^? _last
'.'
See documentation for _head, as _last and _head are pretty similar.
O(1) Last element without checking if the vector is empty
O(1) Last element in a monad without checking for empty vectors. See indexM for an explanation of why this is useful.
O(1) Last element without checking if the vector is empty
O(1) Last element in a monad without checking for empty vectors. See indexM for an explanation of why this is useful.
O(1) Last element without checking if the vector is empty
O(1) Last element in a monad without checking for empty vectors. See indexM for an explanation of why this is useful.
O(1) Last element without checking if the vector is empty
O(1) Last element in a monad without checking for empty vectors. See indexM for an explanation of why this is useful.