Array stream fold.
An array stream fold is basically an array stream Parser that does not
fail. In case of array stream folds the count in Partial, Continue and
Done is a count of elements that includes the leftover element count in
the array that is currently being processed by the parser. If none of the
elements is consumed by the parser the count is at least the whole array
length. If the whole array is consumed by the parser then the count will be
0.
Pre-release
Instances3Monad, Functor, Applicative
Monad m => Monad (ChunkFold m a)Defined in streamly-core-0.2.2 · Streamly.Internal.Data.Fold.ChunkedMonad instance applies folds sequentially. Next fold can depend on the output of the previous fold. See concatMap.
(>>=) = flip concatMapFunctor m => Functor (ChunkFold m a)Defined in streamly-core-0.2.2 · Streamly.Internal.Data.Fold.ChunkedMaps a function over the result of fold.
Pre-release
Monad m => Applicative (ChunkFold m a)Defined in streamly-core-0.2.2 · Streamly.Internal.Data.Fold.ChunkedApplicative form of splitWith. > (*) = splitWith id