Sets

Set construction and set member functions.

Set construction and set member functions. 21 entries. This page is generated from the MatchBox source; see the function reference index for how to read the tables and what each gate means.

FunctionFormsGateNotes
listToSetlistToSet( ... ), string.listToSet( ... )alwaysCreates a set from a list.
objectToSetobjectToSet( ... )always
setNewsetNew( ... )alwaysCreates a set; the first argument may be a type such as "linked" (keeps insertion order).
setOfsetOf( ... )alwaysCreates a set from its arguments; duplicates are dropped.
structKeySetstructKeySet( ... ), struct.keySet( ... )always
structValueSetstructValueSet( ... ), struct.valueSet( ... )always
toSettoSet( ... ), array.toSet( ... )alwaysCreates a set from an array.
array.addAllarray.addAll( ... )alwaysAppends all values of another array in place.
array.differencearray.difference( ... )always
array.hasarray.has( ... )alwaysReturns true when the array contains the value.
array.intersectionarray.intersection( ... )always
array.isCaseSensitivearray.isCaseSensitive( ... )always
array.isDisjointFromarray.isDisjointFrom( ... )always
array.isSubsetOfarray.isSubsetOf( ... )always
array.isSupersetOfarray.isSupersetOf( ... )always
array.removearray.remove( ... )alwaysRemoves the element equal to the value (not the element at that index) and returns the array.
array.removeAllarray.removeAll( ... )alwaysRemoves every element that appears in the other array.
array.retainAllarray.retainAll( ... )alwaysKeeps only the elements that also appear in the other array.
array.symmetricDifferencearray.symmetricDifference( ... )always
array.toArrayarray.toArray( ... )always
array.unionarray.union( ... )always
Edit this page Download Markdown Last updated Oct 27, 2026, 1:45:34 PM Report an issue