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. fromListWith :: (a -> a -> a) -> [(Key, a)] -> Word64Map a

    ghc GHC.Data.Word64Map.Strict

    Create a map from a list of key/value pairs with a combining function. See also fromAscListWith.

    fromListWith (++) [(5,"a"), (5,"b"), (3,"b"), (3,"a"), (5,"a")] == fromList [(3, "ab"), (5, "aba")]
    fromListWith (++) [] == empty
    

  2. fromListWithKey :: (Key -> a -> a -> a) -> [(Key, a)] -> Word64Map a

    ghc GHC.Data.Word64Map.Strict

    Build a map from a list of key/value pairs with a combining function. See also fromAscListWithKey'.

    let f key new_value old_value = show key ++ ":" ++ new_value ++ "|" ++ old_value
    fromListWithKey f [(5,"a"), (5,"b"), (3,"b"), (3,"a"), (5,"c")] == fromList [(3, "3:a|b"), (5, "5:c|5:b|a")]
    fromListWithKey f [] == empty
    

  3. fromListWith :: (a -> a -> a) -> [(Key, a)] -> Word64Map a

    ghc GHC.Data.Word64Map.Strict.Internal

    Create a map from a list of key/value pairs with a combining function. See also fromAscListWith.

    fromListWith (++) [(5,"a"), (5,"b"), (3,"b"), (3,"a"), (5,"a")] == fromList [(3, "ab"), (5, "aba")]
    fromListWith (++) [] == empty
    

  4. fromListWithKey :: (Key -> a -> a -> a) -> [(Key, a)] -> Word64Map a

    ghc GHC.Data.Word64Map.Strict.Internal

    Build a map from a list of key/value pairs with a combining function. See also fromAscListWithKey'.

    let f key new_value old_value = show key ++ ":" ++ new_value ++ "|" ++ old_value
    fromListWithKey f [(5,"a"), (5,"b"), (3,"b"), (3,"a"), (5,"c")] == fromList [(3, "3:a|b"), (5, "5:c|5:b|a")]
    fromListWithKey f [] == empty
    

  5. fromListWith :: (a -> a -> a) -> [(Key, a)] -> CharMap a

    regex-tdfa Data.IntMap.CharMap2

    No documentation available.

  6. fromListWithKey :: (Key -> a -> a -> a) -> [(Key, a)] -> CharMap a

    regex-tdfa Data.IntMap.CharMap2

    No documentation available.

  7. fromListWith :: Enum key => (a -> a -> a) -> [(key, a)] -> EnumMap key a

    regex-tdfa Data.IntMap.EnumMap2

    No documentation available.

  8. fromListWithKey :: Enum key => (key -> a -> a -> a) -> [(key, a)] -> EnumMap key a

    regex-tdfa Data.IntMap.EnumMap2

    No documentation available.

  9. fromListAccum :: [(Key, Value)] -> Object

    attoparsec-aeson Data.Aeson.Parser.Internal

    fromListAccum kvs is an object mapping keys to arrays containing all associated values from the original list kvs.

    >>> fromListAccum [("apple", Bool True), ("apple", Bool False), ("orange", Bool False)]
    fromList [("apple",Array [Bool False,Bool True]),("orange",Array [Bool False])]
    

  10. fromListWith :: Ord k => (a -> a -> a) -> T [] (k, a) -> T k a

    non-empty Data.NonEmpty.Map

    \xs -> Map.fromListWith (++) (NonEmpty.flatten xs) == NonEmptyMap.flatten (NonEmptyMap.fromListWith (++) (xs::NonEmpty.T [] (Int,String)))
    

Page 42 of many | Previous | Next