Safe Haskell | None |
---|---|
Language | Haskell2010 |
DeferredFolds.Defs.Unfoldl
Contents
Synopsis
- fold :: Fold input output -> Unfoldl input -> output
- unfoldlM :: UnfoldlM Identity input -> Unfoldl input
- mapFoldInput :: (forall x. Fold b x -> Fold a x) -> Unfoldl a -> Unfoldl b
- foldable :: Foldable foldable => foldable a -> Unfoldl a
- filter :: (a -> Bool) -> Unfoldl a -> Unfoldl a
- intsInRange :: Int -> Int -> Unfoldl Int
- mapAssocs :: Map key value -> Unfoldl (key, value)
- intMapAssocs :: IntMap value -> Unfoldl (Int, value)
- byteStringBytes :: ByteString -> Unfoldl Word8
- shortByteStringBytes :: ShortByteString -> Unfoldl Word8
- primArray :: Prim prim => PrimArray prim -> Unfoldl prim
- primArrayWithIndices :: Prim prim => PrimArray prim -> Unfoldl (Int, prim)
Documentation
mapFoldInput :: (forall x. Fold b x -> Fold a x) -> Unfoldl a -> Unfoldl b Source #
Lift a fold input mapping function into a mapping of unfolds
byteStringBytes :: ByteString -> Unfoldl Word8 Source #
Bytes of a bytestring
shortByteStringBytes :: ShortByteString -> Unfoldl Word8 Source #
Bytes of a short bytestring
primArrayWithIndices :: Prim prim => PrimArray prim -> Unfoldl (Int, prim) Source #
Elements of a prim array coming paired with indices