A linked-list of elements. The list is composed of element container objects that are chained together. It is optimized so that adding or removing an element does not imply copying the whole list content every time.
See also:
Constructor
Variables
Methods
clear():Void
Empties this List.
This function does not traverse the elements, but simply sets the
internal references to null and this.length to 0.
filter(f:T ‑> Bool):List<T>
Returns a list filtered with f. The returned list will contain all
elements for which f(x) == true.
first():Null<T>
Returns the first element of this List, or null if no elements exist.
This function does not modify this List.
join(sep:String):String
Returns a string representation of this List, with sep separating
each element.
last():Null<T>
Returns the last element of this List, or null if no elements exist.
This function does not modify this List.
map<X>(f:T ‑> X):List<X>
Returns a new list where all elements have been converted by the
function f.
pop():Null<T>
Returns the first element of this List, or null if no elements exist.
The element is removed from this List.