TYPE
list
type list<T>: collection<T>Represents a mutable array list. Subtype of collection<T>.
See Also
Since 0.6.0
Methods
- _set
- Set the element at the specified index, overwriting the element that was previously at that index.
- _sort
- Sort this list in place.
- add
- Insert a value at the specified index. Any elements previously occurring at and after the specified
- addAll
- Insert all elements from a collection at the specified index. Any elements previously occurring at
- add_all
- Insert all elements from a collection at the specified index. Any elements previously occurring at
- add_all_copy
- Returns a new list that is the concatenation of the elements of this list with those of the given
- 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.
- get
- Retrieve the element at the specified index.
- indexOf
- Search for the first occurrence of the specified element within this list.
- index_of
- Search for the first occurrence of the specified element within this list.
- join_to_text
- Generate a textual representation of this iterable.
- len
- Get the size (number of elements) of this collection.
- list
- remove
- Remove an element from this collection.
- removeAll
- Remove all elements in another collection from this collection.
- removeAt
- Remove and return the element at the specified index. The indices of elements occurring after the
- remove_all
- Remove all elements in another collection from this collection.
- remove_all_copy
- Returns a new list whose elements are those found in this list and not in the given collection.
- remove_at
- Remove and return the element at the specified index. The indices of elements occurring after the
- repeat
- Repeat this list n times.
- retain_all
- Retain in this collection only those elements found in the given collection. In other words, remove
- retain_all_copy
- Return a new list whose elements are those found in both this list and the given collection, or in
- reverse
- Reverses the order of the elements in the list in place.
- reversed
- Returns a new list with the elements of this list in reverse order.
- set
- Set the element at the specified index, overwriting the element that was previously at that index.
- size
- Get the size (number of elements) of this collection.
- sort
- Sort this list in place.
- sorted
- Sorts the elements of this collection into a list. This collection is not modified.
- str
- Returns a textual representation of this collection.
- sub
- Returns a sublist of this list starting from the specified index (inclusive).
- to_text
- Returns a textual representation of this collection.