Hoogle Search

Within LTS Haskell 24.12 (ghc-9.10.3)

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

  1. fromDistinctAscList :: [(Key, a)] -> Word64Map a

    ghc GHC.Data.Word64Map.Strict.Internal

    Build a map from a list of key/value pairs where the keys are in ascending order and all distinct. The precondition (input list is strictly ascending) is not checked.

    fromDistinctAscList [(3,"b"), (5,"a")] == fromList [(3, "b"), (5, "a")]
    

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

    ghc GHC.Data.Word64Map.Strict.Internal

    Create a map from a list of key/value pairs.

    fromList [] == empty
    fromList [(5,"a"), (3,"b"), (5, "c")] == fromList [(5,"c"), (3,"b")]
    fromList [(5,"c"), (3,"b"), (5, "a")] == fromList [(5,"a"), (3,"b")]
    

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

    ghc GHC.Data.Word64Map.Strict.Internal

    Convert the map to a list of key/value pairs where the keys are in ascending order. Subject to list fusion.

    toAscList (fromList [(5,"a"), (3,"b")]) == [(3,"b"), (5,"a")]
    

  6. toDescList :: Word64Map a -> [(Key, a)]

    ghc GHC.Data.Word64Map.Strict.Internal

    Convert the map to a list of key/value pairs where the keys are in descending order. Subject to list fusion.

    toDescList (fromList [(5,"a"), (3,"b")]) == [(5,"a"), (3,"b")]
    

  7. toList :: Word64Map a -> [(Key, a)]

    ghc GHC.Data.Word64Map.Strict.Internal

    Convert the map to a list of key/value pairs. Subject to list fusion.

    toList (fromList [(5,"a"), (3,"b")]) == [(3,"b"), (5,"a")]
    toList empty == []
    

  8. fromAscList :: [Key] -> Word64Set

    ghc GHC.Data.Word64Set

    Build a set from an ascending list of elements. The precondition (input list is ascending) is not checked.

  9. fromDistinctAscList :: [Key] -> Word64Set

    ghc GHC.Data.Word64Set

    Build a set from an ascending list of distinct elements. The precondition (input list is strictly ascending) is not checked.

  10. fromList :: [Key] -> Word64Set

    ghc GHC.Data.Word64Set

    Create a set from a list of integers.

Page 65 of many | Previous | Next