TYPE
set
type set<T>: collection<T>A mutable set of elements of type T, where T is immutable. Subtype of collection<T>. Implemented
as a hash-set, with iteration order determined by the order in which the elements were added.
See Also
Since 0.6.0
Methods
- add
- Append an element to the end of this collection.
- addAll
- Add all elements from another collection to the end of this collection.
- add_all
- Add all elements from another collection to the end of this collection.
- add_all_copy
- Returns a new set containing the elements of this set and the elements of a given collection.
- clear
- Clear this collection; i.e. remove all its elements. Immediately after this method returns, this
- contains
- Check if this collection contains the given element.
- containsAll
- Check if this collection contains all elements of another collection.
- contains_all
- Check if this collection contains all elements of another collection.
- empty
- Check if this collection is empty.
- join_to_text
- Generate a textual representation of this iterable.
- len
- Get the size (number of elements) of this collection.
- remove
- Remove an element from this collection.
- removeAll
- Remove all elements in another collection from this collection.
- remove_all
- Remove all elements in another collection from this collection.
- remove_all_copy
- Returns a new set containing the elements of this set, but without any elements that occur in the
- retain_all
- Retain in this collection only those elements found in the given collection. In other words, remove
- retain_all_copy
- Returns a new set whose elements are those found in both this set and the given collection, or in
- set
- size
- Get the size (number of elements) of this collection.
- sorted
- Sorts the elements of this collection into a list. This collection is not modified.
- str
- Returns a textual representation of this collection.
- to_text
- Returns a textual representation of this collection.