Hoogle Search

Within LTS Haskell 24.4 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. foldl :: (a -> b -> a) -> a -> NEMap k b -> a

    nonempty-containers Data.Map.NonEmpty

    O(n). Fold the values in the map using the given left-associative binary operator, such that foldl f z == foldl f z . elems.

    elemsList = reverse . foldl (flip (:)) []
    
    let f len a = len + (length a)
    foldl f 0 (fromList ((5,"a") :| [(3,"bbb")])) == 4
    

  2. foldl :: (a -> b -> a) -> a -> NEMap k b -> a

    nonempty-containers Data.Map.NonEmpty.Internal

    O(n). Fold the values in the map using the given left-associative binary operator, such that foldl f z == foldl f z . elems.

    elemsList = reverse . foldl (flip (:)) []
    
    let f len a = len + (length a)
    foldl f 0 (fromList ((5,"a") :| [(3,"bbb")])) == 4
    

  3. foldl :: (a -> b -> a) -> a -> NESet b -> a

    nonempty-containers Data.Set.NonEmpty

    O(n). Fold the elements in the set using the given left-associative binary operator, such that foldl f z == foldl f z . toAscList. For example,

    descElemsList set = foldl (flip (:)) [] set
    

  4. foldl :: (a -> b -> a) -> a -> NESet b -> a

    nonempty-containers Data.Set.NonEmpty.Internal

    O(n). Fold the elements in the set using the given left-associative binary operator, such that foldl f z == foldl f z . toAscList. For example,

    descElemsList set = foldl (flip (:)) [] set
    

  5. foldl :: (a -> b -> a) -> a -> [b] -> a

    prelude-compat Data.List2010

    No documentation available.

  6. foldl :: (a -> b -> a) -> a -> [b] -> a

    prelude-compat Prelude2010

    No documentation available.

  7. foldl :: (a -> b -> a) -> a -> Vector b -> a

    rebase Rebase.Data.Vector

    No documentation available.

  8. foldl :: Monad m => (a -> b -> a) -> a -> Stream m b -> m a

    rebase Rebase.Data.Vector.Fusion.Stream.Monadic

    Left fold

  9. foldl :: Vector v b => (a -> b -> a) -> a -> v b -> a

    rebase Rebase.Data.Vector.Generic

    No documentation available.

  10. foldl :: (PrimMonad m, MVector v a) => (b -> a -> b) -> b -> v (PrimState m) a -> m b

    rebase Rebase.Data.Vector.Generic.Mutable

    No documentation available.

Page 13 of many | Previous | Next