Set:

Filter: Source: Set.sc

Subclasses: Dictionary, IdentitySet

A Set is s collection of objects, no two of which are equal. Most of its methods are inherited from Collection. The contents of a Set are unordered. You must not depend on the order of items in a set. For an ordered set, see OrderedIdentitySet.

Add an Object to the Set. An object which is equal to an object already in the Set will not be added.

Remove an Object from the Set. Element is checked for equality (not for identity).

Returns true if the specified item is present in the Set. Elements are checked for equality (not for identity).

Returns the item, if it is present in the set. Otherwise returns nil. Element is checked for equality (not for identity).

Evaluates function for each item in the Set. The function is passed two arguments, the item and an integer index.

Returns the object at the internal **index**. This index is not deterministic.

Return the set theoretical intersection of this and **that**. The function will search for objects occurring in both sets and return a new set containing those. Elements are checked for equality (not for identity).

Return the set theoretical union of this and **that**. The function combines the two sets into one without duplicates. Elements are checked for equality (not for identity).

Return the set of all items which are elements of this, but not of **that**. Elements are checked for equality (not for identity).

Return the set of all items which are not elements of both this and **that**. Elements are checked for equality (not for identity).

Returns true if all elements of this are also elements of **that**. Elements are checked for equality (not for identity). Since Set is an unordered collection, order doesn't matter in this comparison.

helpfile source: https://github.com/supercollider/supercollider/tree/3.13/HelpSource/Classes/Set.schelp

link::Classes/Set::

link::Classes/Set::