rio-0.1.18.0: A standard library for Haskell

Safe Haskell | Safe
Language | Haskell2010

RIO.ByteString.Partial

Contents

- Basic interface
- Reducing `ByteString`s (folds)
- Special folds

Description

Strict `ByteString` partial functions. Import as:

    import qualified RIO.ByteString.Partial as B'

Synopsis

- head :: ByteString -> Word8
- last :: ByteString -> Word8
- tail :: ByteString -> ByteString
- init :: ByteString -> ByteString
- foldl1 :: (Word8 -> Word8 -> Word8) -> ByteString -> Word8
- foldl1' :: (Word8 -> Word8 -> Word8) -> ByteString -> Word8
- foldr1 :: (Word8 -> Word8 -> Word8) -> ByteString -> Word8
- foldr1' :: (Word8 -> Word8 -> Word8) -> ByteString -> Word8
- maximum :: ByteString -> Word8
- minimum :: ByteString -> Word8

# Basic interface

head :: ByteString -> Word8 #

last :: ByteString -> Word8 #

tail :: ByteString -> ByteString #

init :: ByteString -> ByteString #

# Reducing `ByteString`s (folds)

foldl1 :: (Word8 -> Word8 -> Word8) -> ByteString -> Word8 #

foldl1' :: (Word8 -> Word8 -> Word8) -> ByteString -> Word8 #

foldr1 :: (Word8 -> Word8 -> Word8) -> ByteString -> Word8 #

foldr1' :: (Word8 -> Word8 -> Word8) -> ByteString -> Word8 #

# Special folds

maximum :: ByteString -> Word8 #

minimum :: ByteString -> Word8 #