The NonOrderedCollection type provides the shared functionality of the Bag and Set collections for which the elements are not ordered. The common supertype of NonOrderedCollection is Collection.
conformsTo
Collection<T>
Operations
intersection(bag : Bag<T>) : Bag<T>
The intersection of self and bag.
intersection(s : Set<T>) : Set<T>
The intersection of self and s (i.e., the set of all elements that are in both self and s).
union(bag : Bag<T>) : Bag<T>
The union of self and bag.
union(s : Set<T>) : Set<T>
The union of self and s.
Iterations
closure(i : T | body : Lambda T() : Set<T>) : Set<T>
The closure of applying body transitively to every distinct element of the source collection.
collect<V>(i : T | body : Lambda T() : V) : Bag<V>
collectNested<V>(i : T | body : Lambda T() : V) : Bag<T>
The Bag of elements which results from applying body to every member of the source nonordered collection.