FastList
class haxe.FastList<T>Available in flash8, flash, neko, js, php, cpp, cs, javaA 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.
inline function add( item : T ) : VoidAdd 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() : BoolTells if a list is empty.
function iterator() : Iterator<T>Returns an iterator on the elements of the list.
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 ) : 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 #14807, modified 2012-07-16 12:27:22 by api
0 comment