Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

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

  1. foldlWithKey :: (a -> Key -> b -> a) -> a -> Word64Map b -> a

    ghc GHC.Data.Word64Map.Lazy

    Fold the keys and values in the map using the given left-associative binary operator, such that foldlWithKey f z == foldl (\z' (kx, x) -> f z' kx x) z . toAscList. For example,

    keys = reverse . foldlWithKey (\ks k x -> k:ks) []
    
    let f result k a = result ++ "(" ++ (show k) ++ ":" ++ a ++ ")"
    foldlWithKey f "Map: " (fromList [(5,"a"), (3,"b")]) == "Map: (3:b)(5:a)"
    

  2. foldlWithKey' :: (a -> Key -> b -> a) -> a -> Word64Map b -> a

    ghc GHC.Data.Word64Map.Lazy

    A strict version of foldlWithKey. Each application of the operator is evaluated before using the result in the next application. This function is strict in the starting value.

  3. foldl' :: (a -> b -> a) -> a -> Word64Map b -> a

    ghc GHC.Data.Word64Map.Strict

    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.

  4. foldlWithKey :: (a -> Key -> b -> a) -> a -> Word64Map b -> a

    ghc GHC.Data.Word64Map.Strict

    Fold the keys and values in the map using the given left-associative binary operator, such that foldlWithKey f z == foldl (\z' (kx, x) -> f z' kx x) z . toAscList. For example,

    keys = reverse . foldlWithKey (\ks k x -> k:ks) []
    
    let f result k a = result ++ "(" ++ (show k) ++ ":" ++ a ++ ")"
    foldlWithKey f "Map: " (fromList [(5,"a"), (3,"b")]) == "Map: (3:b)(5:a)"
    

  5. foldlWithKey' :: (a -> Key -> b -> a) -> a -> Word64Map b -> a

    ghc GHC.Data.Word64Map.Strict

    A strict version of foldlWithKey. Each application of the operator is evaluated before using the result in the next application. This function is strict in the starting value.

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

    ghc GHC.Data.Word64Map.Strict.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.

  7. foldlWithKey :: (a -> Key -> b -> a) -> a -> Word64Map b -> a

    ghc GHC.Data.Word64Map.Strict.Internal

    Fold the keys and values in the map using the given left-associative binary operator, such that foldlWithKey f z == foldl (\z' (kx, x) -> f z' kx x) z . toAscList. For example,

    keys = reverse . foldlWithKey (\ks k x -> k:ks) []
    
    let f result k a = result ++ "(" ++ (show k) ++ ":" ++ a ++ ")"
    foldlWithKey f "Map: " (fromList [(5,"a"), (3,"b")]) == "Map: (3:b)(5:a)"
    

  8. foldlWithKey' :: (a -> Key -> b -> a) -> a -> Word64Map b -> a

    ghc GHC.Data.Word64Map.Strict.Internal

    A strict version of foldlWithKey. Each application of the operator is evaluated before using the result in the next application. This function is strict in the starting value.

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

    ghc GHC.Data.Word64Set

    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.

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

    ghc 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.

Page 37 of many | Previous | Next