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' :: (a -> WindowsChar -> a) -> a -> WindowsString -> aos-string System.OsString.Windows foldl' :: Foldable t => (b -> a -> b) -> b -> t a -> brelude Relude.Foldable.Reexport 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 -> v -> a) -> a -> InsOrdHashMap k v -> ainsert-ordered-containers Data.HashMap.Strict.InsOrd No documentation available.
foldl' :: (a -> Char -> a) -> a -> YiString -> ayi-rope Yi.Rope Left fold. Benchmarks show that folding is actually Pretty Damn Slow™: consider whether folding is really the best thing to use in your scenario.
foldl' :: (a -> CI ByteString -> ByteString -> a) -> a -> Headers -> asnap-core Snap.Types.Headers Strict left fold over all key-value pairs in the headers map. Example:
ghci> :set -XOverloadedStrings ghci> import Data.Monoid ghci> let hdrs = H.fromList [("Accept", "text/plain"), ("Accept", "text/html")] ghci> let f (cntr, acc) _ val = (cntr+1, val <> ";" <> acc) ghci> H.foldl' f (0, "") hdrs (2,"text/html;text/plain;")
-
vector-sized Data.Vector.Generic.Sized O(n) Left fold with strict accumulator.
foldl' :: forall b a (n :: Nat) . Prim b => (a -> b -> a) -> a -> Vector n b -> avector-sized Data.Vector.Primitive.Sized O(n) Left fold with strict accumulator.
foldl' :: forall a b (n :: Nat) . (a -> b -> a) -> a -> Vector n b -> avector-sized Data.Vector.Sized O(n) Left fold with strict accumulator.
foldl' :: forall b a (n :: Nat) . Storable b => (a -> b -> a) -> a -> Vector n b -> avector-sized Data.Vector.Storable.Sized O(n) Left fold with strict accumulator.
foldl' :: forall b a (n :: Nat) . Unbox b => (a -> b -> a) -> a -> Vector n b -> avector-sized Data.Vector.Unboxed.Sized O(n) Left fold with strict accumulator.