Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
A map from hashable keys to values.
Documentation
A map from a keys to b elements where keys instantiate the
Hash
type class. Key/element pairs are kept in Value
objects
which takes care of potential hash collisions.
Instances
(Eq a, Eq b) => Eq (HashMap a b) Source # | |
(Ord a, Ord b) => Ord (HashMap a b) Source # | |
Defined in Data.DAWG.HashMap | |
(Show a, Show b) => Show (HashMap a b) Source # | |
(Ord a, Binary a, Binary b) => Binary (HashMap a b) Source # | |
insertUnsafe :: Hash a => a -> b -> HashMap a b -> HashMap a b Source #
Insert a new element. The function doesn't check if the element was already present in the map.
lookupUnsafe :: Hash a => a -> HashMap a b -> b Source #
Assumption: element is present in the map.