The mapAccumL function behaves like a combination of map
and foldl; it applies a function to each element of a
ByteString, passing an accumulating parameter from left to right, and
returning a final value of this accumulator together with the new
ByteString.
The mapAccumR function behaves like a combination of map
and foldr; it applies a function to each element of a
ByteString, passing an accumulating parameter from right to left, and
returning a final value of this accumulator together with the new
ByteString.
The mapAccumL function behaves like a combination of map
and foldl; it applies a function to each element of a
ByteString, passing an accumulating parameter from left to right, and
returning a final value of this accumulator together with the new
ByteString.
The mapAccumR function behaves like a combination of map
and foldr; it applies a function to each element of a
ByteString, passing an accumulating parameter from right to left, and
returning a final value of this accumulator together with the new
ByteString.
Apply a function to transform the result of a continuation-passing
computation. This has a more restricted type than the map
operations for other monad transformers, because ContT does not
define a functor in the category of monads.