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' :: Vector v a => (b -> a -> b) -> b -> v a -> bfixed-vector Data.Vector.Fixed Strict left fold over vector
foldl' :: forall (n :: PeanoNum) b a . ArityPeano n => (b -> a -> b) -> b -> ContVec n a -> bfixed-vector Data.Vector.Fixed.Cont Strict left fold over continuation vector.
foldl' :: Foldable t => (b -> a -> b) -> b -> t a -> bmixed-types-num Numeric.MixedTypes.PreludeHiding 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' :: (r -> v -> r) -> r -> MonoidMap k v -> rmonoidmap Data.MonoidMap 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' :: (a -> b -> a) -> a -> NonEmptyVector b -> anonempty-vector Data.Vector.NonEmpty O(n) Strict Left monoidal fold
foldl' :: Foldable t => (b -> a -> b) -> b -> t a -> bLambdaHack Game.LambdaHack.Core.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 -> bLambdaHack Game.LambdaHack.Core.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
-
backprop Prelude.Backprop Lifed foldl'. Essentially just toList composed with a normal list foldl', and is only here for convenience.
-
backprop Prelude.Backprop.Explicit -
backprop Prelude.Backprop.Num foldl', but with Num constraints instead of Backprop constraints.