deferred-folds-0.2.3: Abstractions over deferred folds

Safe HaskellNone
LanguageHaskell2010

DeferredFolds.FoldlMView

Synopsis

Documentation

newtype FoldlMView input Source #

A monadic variation of DeferredFolds.FoldView

Constructors

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