TYPE
collection
hidden abstract type collection<T>: iterable<T>A generic type for mutable ordered collections of elements. Subtype of iterable<T>. Supports many
standard operations such add insertion, removal, lookup and sorting.
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.
- 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.
- retain_all
- Retain in this collection only those elements found in the given collection. In other words, remove
- 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.