List
haxe.ds.List (Class)
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: https://haxe.org/manual/std-List.html
Instance Members
length: Int
The length of this
List.
add(item: haxe.ds.List.T): Void
Adds element item
at the end of this
List.
this.length
increases by 1.
Name | Type |
---|---|
item |
haxe.ds.List.T |
push(item: haxe.ds.List.T): Void
Adds element item
at the beginning of this
List.
this.length
increases by 1.
Name | Type |
---|---|
item |
haxe.ds.List.T |
pop(): Null<haxe.ds.List.T>
Returns the first element of this
List, or null if no elements exist.
The element is removed from this
List.
Returns |
---|
Null<haxe.ds.List.T> |
iterator(): haxe.ds._List.ListIterator<haxe.ds.List.T>
Returns an iterator on the elements of the list.
Returns |
---|
haxe.ds._List.ListIterator<haxe.ds.List.T> |
new(): Void
Creates a new empty list.
Private Members
h: haxe.ds._List.ListNode<haxe.ds.List.T>
q: haxe.ds._List.ListNode<haxe.ds.List.T>