# Set
A set of unique generic values.
The Set API is very similar to JavaScript's (MDN (opens new window)), but iterators are not implemented yet.
# Constructor
- Constructs a new set of unique value of type
new Set<T>()T.
# Instance members
# Fields
- The current number of unique values in the set.
readonly size: i32
# Methods
function add(value: T): voidAdds the specified value to the set. Does nothing if the value already exists.
function delete(value: T): boolDeletes the specified value. Returns
trueif the value was found, otherwisefalse.function clear(): voidClears the set, deleting all values.
function has(value: T): boolTests if the specified value exists in the set.
function values(): Array<T>Gets the values contained in this set as an array, in insertion order. This is preliminary while iterators are not supported.
function toString(): stringReturns a string representation of this set.
← process StaticArray →