class (Monoid set, Semigroup set, MonoFoldable set, Eq (ContainerKey set), GrowingAppend set) => SetContainer set whereA container whose values are stored in Key-Value pairs.
Associated types
type family ContainerKey setThe type of the key
Methods
member :: ContainerKey set -> set -> BoolCheck if there is a value with the supplied key in the container.
notMember :: ContainerKey set -> set -> BoolCheck if there isn't a value with the supplied key in the container.
union :: set -> set -> setGet the union of two containers.
unions :: (MonoFoldable mono, Element mono ~ set) => mono -> setCombine a collection of
SetContainers, with left-most values overriding when there are matching keys.difference :: set -> set -> setGet the difference of two containers.
intersection :: set -> set -> setGet the intersection of two containers.
keys :: set -> [ContainerKey set]Get a list of all of the keys in the container.
Instances7SetContainer, …
SetContainer IntSetDefined in mono-traversable-1.0.21.0 · Data.ContainersEq key => SetContainer [(key, value)]Defined in mono-traversable-1.0.21.0 · Data.ContainersOrd element => SetContainer (Set element)Defined in mono-traversable-1.0.21.0 · Data.ContainersSetContainer (IntMap value)Defined in mono-traversable-1.0.21.0 · Data.ContainersThis instance uses the functions from Data.IntMap.Strict.
(Eq element, Hashable element) => SetContainer (HashSet element)Defined in mono-traversable-1.0.21.0 · Data.ContainersOrd k => SetContainer (Map k v)Defined in mono-traversable-1.0.21.0 · Data.ContainersThis instance uses the functions from Data.Map.Strict.
(Eq key, Hashable key) => SetContainer (HashMap key value)Defined in mono-traversable-1.0.21.0 · Data.ContainersThis instance uses the functions from Data.HashMap.Strict.