haXe API Documentation
Back |
Indexclass haxe.FastList<T>
Available in flash, neko, js, flash9, php, cpp
A linked-list of elements. A different class is created for each container used in platforms where it matters
- var head : FastCell<T>
- function new() : Void
-
Creates a new empty list.
- inline function add(item : T) : Void
-
Add an element at the head of the list.
- inline function first() : Null<T>
-
Returns the first element of the list, or null
if the list is empty.
- inline function isEmpty() : Bool
-
Tells if a list is empty.
- function iterator() : Iterator<T>
Available in flash, neko, js, flash9, php
-
Returns an iterator on the elements of the list.
- function iterator() : Iterator<T>
Available in cpp
- inline function pop() : Null<T>
-
Removes the first element of the list and
returns it or simply returns null if the
list is empty.
- function remove(v : T) : Bool
-
Remove the first element that is
== v
from the list.
Returns true
if an element was removed, false
otherwise.
- function toString() : String
-
Returns a displayable representation of the String.
Back |
Index