deferred-folds-0.2.2: Abstractions over deferred folds

Safe HaskellNone
LanguageHaskell2010

DeferredFolds.FoldlMView

Synopsis

Documentation

newtype FoldlMView input Source #

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

fold :: Fold input output -> FoldlMView input -> output Source #

Apply a 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