List
interface in package klyn.collections

    public interface List<T> extends Collection<T>, IList<T>:

Collection
└ List

Ordered collection of elements.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | add `add(index as Int, item as T) as Void` | Inserts an element at the requested index.
public | add `add(item as T) as Void` | Adds an element at the end.
public | addAll `addAll(index as Int, values as IList<T>) as Void` | Inserts every element from a read-only list at the requested index.
public | addAll `addAll(index as Int, values as Set<T>) as Void` | Inserts every element from a set at the requested index.
public | addAll `addAll(index as Int, values as Tuple) as Void` | Inserts every element from a tuple at the requested index.
public | addAll `addAll(values as IList<T>) as Void` | Appends every element from a read-only list.
public | addAll `addAll(values as Set<T>) as Void` | Appends every element from a set.
public | addAll `addAll(values as Tuple) as Void` | Appends every element from a tuple.
public | remove `remove(item as T) as Boolean` | Removes the first matching element.
public | removeAt `removeAt(index as Int) as Void` | Removes the element at the requested index.
public | reverse `reverse() as Void` | Reverses list elements in-place.
public | reverseNew `reverseNew() as List<T>` | Returns a new reversed list without modifying the original.
public | shuffle `shuffle() as Void` | Randomly shuffles the list in-place.
public | sort `sort() as Void` | Sorts the list in ascending order.
public | sortNew `sortNew() as List<T>` | Returns a new sorted list without modifying the original.

Inherited Methods
method Inherited Methods from Collection: count, toString
Operators

Modifier and Type | Member | Description
--- | --- | ---
public static | operator+(left as List<T>, right as List<T>) as List<T> | Concatenates two lists into a new list.
public | operator+=(values as IList<T>) as Void | Appends every element from a read-only list.
public | operator+=(values as Set<T>) as Void | Appends every element from a set.
public | operator+=(values as Tuple) as Void | Appends every element from a tuple.

Inherited Operators
operator Inherited Operators from Collection: operator in(item as T) as Boolean