haXe API Documentation
Back |
Indexclass List<T>
Available in flash8, neko, js, flash, php, cpp
A linked-list of elements. The list is composed of two-elements arrays
that are chained together. It's optimized so that adding or removing an
element doesn't imply to copy the whole array content everytime.
- var length(default,null) : Int
- The number of elements in this list.
- function new() : Void
- Creates a new empty list.
- function add(item : T) : Void
- function clear() : Void
- function filter(f : T -> Bool) : List<T>
- function first() : Null<T>
- function isEmpty() : Bool
- function iterator() : Iterator<T>
- function join(sep : String) : String
- function last() : Null<T>
- function map<X>(f : T -> X) : List<X>
- function pop() : Null<T>
- function push(item : T) : Void
- function remove(v : T) : Bool
- function toString() : String
Back |
Index