Hoogle Search
Within LTS Haskell 24.21 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
foldl' :: (b -> k -> b) -> b -> IntervalSet k -> bIntervalMap Data.IntervalSet O(n). A strict version of foldl. Each application of the operator is evaluated before using the result in the next application. This function is strict in the starting value.
foldl' :: MonoFoldable mono => (a -> Element mono -> a) -> a -> mono -> aclassy-prelude-yesod ClassyPrelude.Yesod Synonym for ofoldl'
foldl' :: Foldable t => (b -> a -> b) -> b -> t a -> bconstrained-categories Control.Category.Constrained.Prelude Left-associative fold of a structure but with strict application of the operator. This ensures that each step of the fold is forced to Weak Head Normal Form before being applied, avoiding the collection of thunks that would otherwise occur. This is often what you want to strictly reduce a finite structure to a single strict result (e.g. sum). For a general Foldable structure this should be semantically identical to,
foldl' f z = foldl' f z . toList
foldl' :: Foldable t => (b -> a -> b) -> b -> t a -> bconstrained-categories Control.Category.Hask Left-associative fold of a structure but with strict application of the operator. This ensures that each step of the fold is forced to Weak Head Normal Form before being applied, avoiding the collection of thunks that would otherwise occur. This is often what you want to strictly reduce a finite structure to a single strict result (e.g. sum). For a general Foldable structure this should be semantically identical to,
foldl' f z = foldl' f z . toList
foldl' :: Foldable t => (b -> a -> b) -> b -> t a -> bcopilot-language Copilot.Language.Prelude Left-associative fold of a structure but with strict application of the operator. This ensures that each step of the fold is forced to Weak Head Normal Form before being applied, avoiding the collection of thunks that would otherwise occur. This is often what you want to strictly reduce a finite structure to a single strict result (e.g. sum). For a general Foldable structure this should be semantically identical to,
foldl' f z = foldl' f z . toList
-
hybrid-vectors Data.Vector.Hybrid O(n) Left fold with strict accumulator
foldl' :: Foldable t => (b -> a -> b) -> b -> t a -> blistsafe Data.List.Safe Left-associative fold of a structure but with strict application of the operator. This ensures that each step of the fold is forced to Weak Head Normal Form before being applied, avoiding the collection of thunks that would otherwise occur. This is often what you want to strictly reduce a finite structure to a single strict result (e.g. sum). For a general Foldable structure this should be semantically identical to,
foldl' f z = foldl' f z . toList
foldl' :: KnownHashSet s a => (b -> Element s a -> b) -> b -> brefined-containers Data.HashSet.Refined Left associative fold with a strict accumulator.
foldl' :: KnownIntSet s => (a -> Element s -> a) -> a -> arefined-containers Data.IntSet.Refined Left associative fold with a strict accumulator.
foldl' :: KnownSet s a => (b -> Element s a -> b) -> b -> brefined-containers Data.Set.Refined Left associative fold with a strict accumulator.