Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Map k v
- singleton :: Ord k => k -> k -> v -> Map k v
- lookup :: Ord k => k -> Map k v -> Maybe v
- fromList :: (Ord k, Enum k, Eq v) => [(k, k, v)] -> Map k v
- fromListAppend :: (Ord k, Enum k, Semigroup v, Eq v) => [(k, k, v)] -> Map k v
- fromListN :: (Ord k, Enum k, Eq v) => Int -> [(k, k, v)] -> Map k v
- fromListAppendN :: (Ord k, Enum k, Semigroup v, Eq v) => Int -> [(k, k, v)] -> Map k v
Documentation
Instances
(Ord k, Enum k, Eq v) => IsList (Map k v) Source # | |
(Eq k, Eq v) => Eq (Map k v) Source # | |
(Show k, Show v) => Show (Map k v) Source # | |
(Ord k, Enum k, Semigroup v, Eq v) => Semigroup (Map k v) Source # | |
(Ord k, Enum k, Semigroup v, Eq v) => Monoid (Map k v) Source # | |
type Item (Map k v) Source # | |
Defined in Data.Diet.Map.Strict.Lifted.Lifted |
O(1) Create a diet map with a single element.