Set - The
Set a type represents a set of elements of type
a. Most operations require that
a be an instance of the
data 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.
The union of two sets, preferring the first set when equal elements are encountered.
The intersection of two sets. Elements of the result come from the first set.