A set is a list of unique values. Value equality is determined using ==.
See thx.HashSet for an alternative set implementation that uses a hash code to determine item equality.
Static variables
Static methods
staticcreateEnum<T>(?arr:Iterable<T>):Set<T>
Creates a Set of EnumValue, with optional initial values.
staticcreateObject<T>(?it:Iterable<T>):Set<T>
Creates a Set of anonymous objects with optional initial values.
staticcreateString(?it:Iterable<String>):Set<String>
Creates a Set of Strings with optional initial values.
staticinlinedifference(this:Map<T, Bool>, set:Set<T>):Set<T>
difference creates a new Set with elements from the first set excluding the elements
from the second.
staticinlineexists(this:Map<T, Bool>, v:T):Bool
exists returns true if it contains an element that is equals to v.
staticinlineintersection(this:Map<T, Bool>, set:Set<T>):Set<T>
intersection returns a Set with elements that are presents in both sets
staticinlinepush(this:Map<T, Bool>, v:T):Void
Like add but doesn't notify if the addition was successful or not.