Module DA.Next.Set¶
DA.Next.Set
is deprecated. Please use DA.Set
instead.
Functions¶
- fromTextMap
-
Create a
Set
from aTextMap
.
- insert
: MapKey a => a -> Set a -> Set a
Insert an element in a set. If the set already contains an element equal to the given value, it is replaced with the new value.
- union
: MapKey a => Set a -> Set a -> Set a
The union of two sets, preferring the first set when equal elements are encountered.
- intersection
: MapKey a => Set a -> Set a -> Set a
The intersection of two sets. Elements of the result come from the first set.
- difference
: MapKey a => Set a -> Set a -> Set a
difference x y
returns the set consisting of all elements inx
that are not iny
.> > > fromList [1, 2, 3] difference fromList [1, 4] > > > fromList [2, 3]