Creates a new set.
All elements must be hashable.
Creates a new set from another set.
Creates a list from the values in the set.
Inserts an element into the set.
Element must be hashable. This mutates the original set.
Checks for the existence of an element in a set.
Returns whether two sets are equal.
Returns whether a
is a subset of b
.
Returns whether two sets are disjoint.
Two sets are disjoint if they have no elements in common.
Returns the intersection of two sets.
Returns the union of several sets.
Returns the elements in a
that are not in b
.
Returns the number of elements in a set.
Removes an element from the set.
Element must be hashable. This mutates the original set.
Returns a string value representing the set.
Returns a string value representing the set.