FastList

class haxe.FastList<T>Available in flash, flash9, neko, js, phpA linked-list of elements. A different class is created for each container used in platforms where it matters var head : FastCell<T> function new() : VoidCreates a new empty list. function add( item : T ) : VoidAdd an element at the head of the list. function first() : Null<T>Returns the first element of the list, or null if the list is empty. function isEmpty() : BoolTells if a list is empty. function iterator() : Iterator<T>Returns an iterator on the elements of the list. 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 ) : BoolRemove the first element that is == v from the list. Returns true if an element was removed, false otherwise. function toString() : StringReturns a displayable representation of the String.
version #2272, modified 2008-07-28 10:00:49 by api