Reference

Set

New
Input A list of elements.
Output A set containing the list of elements.
Add
Input A set and an element.
Output A new set containing the element.
Remove
Input A set and an element.
Output A new set without the element.
Contains
Input A set and an element.
Output True if the set contains the element, false otherwise.
Is Empty
Input A set.
Output True if the set is empty, false otherwise.
Is Not Empty
Input A set.
Output True if the set is not empty, false otherwise.
Length
Input A set.
Output The number of elements in the set.
Union
Input Two sets.
Output A new set containing all elements from both sets.
Intersection
Input Two sets.
Output A new set containing only elements that are in both sets.