Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- foldl1' :: (Char -> Char -> Char) -> ByteString -> Char
- foldr1 :: (Char -> Char -> Char) -> ByteString -> Char
- foldr1' :: (Char -> Char -> Char) -> ByteString -> Char
- head :: ByteString -> Char
- index :: ByteString -> Int -> Char
- init :: ByteString -> ByteString
- last :: ByteString -> Char
- maximum :: ByteString -> Char
- minimum :: ByteString -> Char
- tail :: ByteString -> ByteString
Documentation
foldr1 :: (Char -> Char -> Char) -> ByteString -> Char #
foldr1
is a variant of foldr
that has no starting value argument,
and thus must be applied to non-empty ByteString
s
head :: ByteString -> Char #
O(1) Extract the first element of a ByteString, which must be non-empty.
index :: ByteString -> Int -> Char #
O(1) ByteString
index (subscript) operator, starting from 0.
init :: ByteString -> ByteString #
O(1) Return all the elements of a ByteString
except the last one.
An exception will be thrown in the case of an empty ByteString.
last :: ByteString -> Char #
O(1) Extract the last element of a packed string, which must be non-empty.
maximum :: ByteString -> Char #
maximum
returns the maximum value from a ByteString
minimum :: ByteString -> Char #
minimum
returns the minimum value from a ByteString
tail :: ByteString -> ByteString #
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.