Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Map k v
- empty :: Map k v
- singleton :: PrimUnlifted k => Set k -> v -> Map k v
- antisingleton :: PrimUnlifted k => Set k -> v -> Map k v
- fromPolarities :: PrimUnlifted k => Map k Bool -> v -> Map k v
- lookup :: (Ord k, PrimUnlifted k) => Set k -> Map k v -> Maybe v
- toList :: PrimUnlifted k => Map k v -> [(Set k, v)]
- fromList :: (Ord k, PrimUnlifted k) => [(Set k, v)] -> Map k v
Documentation
Instances
Functor (Map k) Source # | |
(Eq k, Eq v) => Eq (Map k v) Source # | |
(Ord k, Ord v) => Ord (Map k v) Source # | |
Defined in Data.Map.Subset.Lazy.Internal | |
(Show k, Show v) => Show (Map k v) Source # | |
(Semigroup v, Ord k) => Semigroup (Map k v) Source # | |
(Semigroup v, Ord k) => Monoid (Map k v) Source # | |
Singleton Subset Maps
singleton :: PrimUnlifted k => Set k -> v -> Map k v Source #
A subset map with a single set as its key.
:: PrimUnlifted k | |
=> Set k | negative set |
-> v | value |
-> Map k v |
A subset map with a single negative set as its key. That is, a lookup into this map will only succeed if the needle set and the negative set do not overlap.
:: PrimUnlifted k | |
=> Map k Bool | Map of required presences and absences |
-> v | |
-> Map k v |
Construct a singleton subset map by interpreting a
Data.Map.Unlifted.Lifted.Map
as requirements about
what must be present and absent.