List
interfacein packageklyn.collections
public interface List<T> extends Collection<T>, IList<T>:
└ List

Ordered collection of elements. @param <T> Element type.

Methods
Modifier and Type Member Description
public add
add(item as T) as Void
Adds an element at the end.
public remove
remove(item as T) as Boolean
Removes the first matching element.
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 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.
Methods inherited from Collection: count, toString
Operators inherited from Collection: operator in(item as T) as Boolean