Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
A Map
that supports annihilation, i.e. it is a Monus
,
where for Monus
values, matching keys will be subtracted,
and keys not shared by both Map
s will be discarded.
Instances
Functor (Map k) Source # | |
Foldable (Map k) Source # | |
Defined in Data.Map.Annihilate fold :: Monoid m => Map k m -> m # foldMap :: Monoid m => (a -> m) -> Map k a -> m # foldr :: (a -> b -> b) -> b -> Map k a -> b # foldr' :: (a -> b -> b) -> b -> Map k a -> b # foldl :: (b -> a -> b) -> b -> Map k a -> b # foldl' :: (b -> a -> b) -> b -> Map k a -> b # foldr1 :: (a -> a -> a) -> Map k a -> a # foldl1 :: (a -> a -> a) -> Map k a -> a # elem :: Eq a => a -> Map k a -> Bool # maximum :: Ord a => Map k a -> a # minimum :: Ord a => Map k a -> a # | |
(Eq k, Eq v) => Eq (Map k v) Source # | |
(Ord k, Ord v) => Ord (Map k v) Source # | |
(Show k, Show v) => Show (Map k v) Source # | |
(Ord k, Monoid v, Eq v) => Semigroup (Map k v) Source # | |
(Ord k, Monoid v, Eq v) => Monoid (Map k v) Source # | |
(Ord k, Monus v, Eq v) => Monus (Map k v) Source # | |