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.

  1. foldl' :: (a -> Key -> a) -> a -> Word64Set -> a

    ghc-lib-parser GHC.Data.Word64Set.Internal

    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.

  2. foldl' :: Foldable t => (b -> a -> b) -> b -> t a -> b

    ghc-lib-parser GHC.Prelude.Basic

    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
    

  3. foldl' :: (Contiguous arr, Element arr a) => (b -> a -> b) -> b -> arr a -> b

    contiguous Data.Primitive.Contiguous

    Strict left fold over the elements of an array.

  4. foldl' :: Foldable collection => (a -> Element collection -> a) -> a -> collection -> a

    foundation Foundation

    Left-associative fold of a structure. In the case of lists, foldl, when applied to a binary operator, a starting value (typically the left-identity of the operator), and a list, reduces the list using the binary operator, from left to right:

    foldl f z [x1, x2, ..., xn] == (...((z `f` x1) `f` x2) `f`...) `f` xn
    
    Note that to produce the outermost application of the operator the entire input list must be traversed. This means that foldl' will diverge if given an infinite list. Note that Foundation only provides foldl', a strict version of foldl because the lazy version is seldom useful. Left-associative fold of a structure with strict application of the operator.

  5. foldl' :: Foldable collection => (a -> Element collection -> a) -> a -> collection -> a

    foundation Foundation.Collection

    Left-associative fold of a structure. In the case of lists, foldl, when applied to a binary operator, a starting value (typically the left-identity of the operator), and a list, reduces the list using the binary operator, from left to right:

    foldl f z [x1, x2, ..., xn] == (...((z `f` x1) `f` x2) `f`...) `f` xn
    
    Note that to produce the outermost application of the operator the entire input list must be traversed. This means that foldl' will diverge if given an infinite list. Note that Foundation only provides foldl', a strict version of foldl because the lazy version is seldom useful. Left-associative fold of a structure with strict application of the operator.

  6. foldl' :: (a -> b -> a) -> a -> MonoidalIntMap b -> a

    monoidal-containers Data.IntMap.Monoidal

    No documentation available.

  7. foldl' :: (a -> b -> a) -> a -> MonoidalIntMap b -> a

    monoidal-containers Data.IntMap.Monoidal.Strict

    No documentation available.

  8. foldl' :: forall k a b . (a -> b -> a) -> a -> MonoidalMap k b -> a

    monoidal-containers Data.Map.Monoidal

    No documentation available.

  9. foldl' :: forall k a b . (a -> b -> a) -> a -> MonoidalMap k b -> a

    monoidal-containers Data.Map.Monoidal.Strict

    No documentation available.

  10. foldl' :: (a -> b -> a) -> a -> NEIntMap b -> a

    nonempty-containers Data.IntMap.NonEmpty

    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.

Page 12 of many | Previous | Next