public interface List<T> extends Collection<T>, IList<T>:
Ordered collection of elements. @param <T> Element type.
| Modifier and Type | Member | Description |
|---|---|---|
| public | addadd(item as T) as Void |
Adds an element at the end. |
| public | removeremove(item as T) as Boolean |
Removes the first matching element. |
| public | reversereverse() as Void |
Reverses list elements in-place. |
| public | reverseNewreverseNew() as List<T> |
Returns a new reversed list without modifying the original. |
| public | sortsort() as Void |
Sorts the list in ascending order. |
| public | sortNewsortNew() as List<T> |
Returns a new sorted list without modifying the original. |