abstract Set<T>(Map<T, Bool>)
package thx
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.
Variables
Methods
add (v:T):Bool
inline difference (set:Set<T>):Set<T>
difference creates a new Set with elements from the first set excluding the elements
from the second.
inline intersection (set:Set<T>):Set<T>
intersection returns a Set with elements that are presents in both sets
toArray ():Array<T>
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.