Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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
O(1) Create a diet map with a single element.