Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype FoldlMView input = FoldlMView (forall m output. Monad m => (output -> input -> m output) -> output -> m output)
- foldl' :: (output -> input -> output) -> output -> FoldlMView input -> output
- foldlM' :: Monad m => (output -> input -> m output) -> output -> FoldlMView input -> m output
- fold :: Fold input output -> FoldlMView input -> output
- foldM :: Monad m => FoldM m input output -> FoldlMView input -> m output
- foldable :: Foldable foldable => foldable a -> FoldlMView a
- intsInRange :: Int -> Int -> FoldlMView Int
Documentation
newtype FoldlMView input Source #
A monadic variation of DeferredFolds.FoldView
FoldlMView (forall m output. Monad m => (output -> input -> m output) -> output -> m output) |
foldl' :: (output -> input -> output) -> output -> FoldlMView input -> output Source #
Perform a strict left fold
foldlM' :: Monad m => (output -> input -> m output) -> output -> FoldlMView input -> m output Source #
Perform a monadic strict left fold
fold :: Fold input output -> FoldlMView input -> output Source #
Apply a Gonzalez fold
foldM :: Monad m => FoldM m input output -> FoldlMView input -> m output Source #
Apply a monadic Gonzalez fold
foldable :: Foldable foldable => foldable a -> FoldlMView a Source #
Construct from any foldable
intsInRange :: Int -> Int -> FoldlMView Int Source #
Ints in the specified inclusive range