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' :: Foldable t => (b -> a -> b) -> b -> t a -> brio RIO.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' :: (a -> b -> a) -> a -> Set b -> ario RIO.Set 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 -> Char -> a) -> a -> Text -> ario RIO.Text O(n) A strict version of foldl.
foldl' :: (a -> Char -> a) -> a -> Text -> ario RIO.Text.Lazy O(n) A strict version of foldl.
foldl' :: Vector v b => (a -> b -> a) -> a -> v b -> ario RIO.Vector No documentation available.
foldl' :: (a -> b -> a) -> a -> Vector b -> ario RIO.Vector.Boxed No documentation available.
foldl' :: Storable b => (a -> b -> a) -> a -> Vector b -> ario RIO.Vector.Storable No documentation available.
foldl' :: Unbox b => (a -> b -> a) -> a -> Vector b -> ario RIO.Vector.Unboxed No documentation available.
foldl' :: Storable a => (b -> a -> b) -> b -> Vector a -> bstorablevector Data.StorableVector 'foldl'' is like foldl, but strict in the accumulator.
foldl' :: Storable b => (a -> b -> a) -> a -> Vector b -> astorablevector Data.StorableVector.Lazy No documentation available.