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.
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.