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.
| Function | Forms | Gate | Notes |
|---|---|---|---|
listToSet | listToSet( ... ), string.listToSet( ... ) | always | Creates a set from a list. |
objectToSet | objectToSet( ... ) | always | |
setNew | setNew( ... ) | always | Creates a set; the first argument may be a type such as "linked" (keeps insertion order). |
setOf | setOf( ... ) | always | Creates a set from its arguments; duplicates are dropped. |
structKeySet | structKeySet( ... ), struct.keySet( ... ) | always | |
structValueSet | structValueSet( ... ), struct.valueSet( ... ) | always | |
toSet | toSet( ... ), array.toSet( ... ) | always | Creates a set from an array. |
array.addAll | array.addAll( ... ) | always | Appends all values of another array in place. |
array.difference | array.difference( ... ) | always | |
array.has | array.has( ... ) | always | Returns true when the array contains the value. |
array.intersection | array.intersection( ... ) | always | |
array.isCaseSensitive | array.isCaseSensitive( ... ) | always | |
array.isDisjointFrom | array.isDisjointFrom( ... ) | always | |
array.isSubsetOf | array.isSubsetOf( ... ) | always | |
array.isSupersetOf | array.isSupersetOf( ... ) | always | |
array.remove | array.remove( ... ) | always | Removes the element equal to the value (not the element at that index) and returns the array. |
array.removeAll | array.removeAll( ... ) | always | Removes every element that appears in the other array. |
array.retainAll | array.retainAll( ... ) | always | Keeps only the elements that also appear in the other array. |
array.symmetricDifference | array.symmetricDifference( ... ) | always | |
array.toArray | array.toArray( ... ) | always | |
array.union | array.union( ... ) | always |