Adds elements to the set, according to the set property.
Adds elements to the set, according to the set property. Throws an exception if the key does not refer to a set.
the number of new members added to the set.
How many elements are in the set? Throws an exception if the key does not refer to a set.
How many elements are in the set? Throws an exception if the key does not refer to a set.
the number of elements in the set. Unassigned keys are considered empty sets.
Returns the members of the set resulting from the intersection of all the given sets.
Returns the members of the set resulting from the intersection of all the given sets.
Keys that do not exist are considered to be empty sets. With one of the keys being an empty set, the resulting set is also empty (since set intersection with an empty set always results in an empty set).
Throws an exception if the keys
Seq is empty or if any of the keys
passed as params are empty.
list of keys to intersect
set of members from the resulting intersection
Is the member in the set? Throws an exception if the key does not refer to a set.
Is the member in the set? Throws an exception if the key does not refer to a set.
a boolean, true if it is in the set, false otherwise. Unassigned keys are considered empty sets.
Gets the members of the set.
Gets the members of the set. Throws an exception if the key does not refer to a set.
a list of the members
Removes an element randomly from the set, and returns it.
Removes an element randomly from the set, and returns it. Throws an exception if the key does not refer to a set.
the member, or nothing if the set is empty.
Returns a list of random entries from the set.
Returns a list of random entries from the set. If the count is positive, a set is returned, otherwise a list that may contain duplicates is returned.
a sequence with count random entries from the set
Removes the element from the set if it is in the set.
Removes the element from the set if it is in the set. Throws an exception if the key does not refer to a set.
an integer, the number of elements removed from the set, can be 0 if the key is unassigned.