Interface for collections of flat data, such as arrays or other lists.

Available since

1.0.0

.

Variables

read onlylength:Int

The number of items in the collection.

Available since

1.0.0

.

Methods

add (item:T):Void

Inserts an item at the end of the collection, increasing the length by one.

Available since

1.0.0

.

addAt (item:T, index:Int):Void

Inserts an item into the collection at the specified index, increasing the length by one.

Available since

1.0.0

.

get (index:Int):T

Returns the item at the specified index in the collection.

Available since

1.0.0

.

remove (item:T):Void

Removes a specific item from the collection, decreasing the length by one, if the item is in the collection.

Available since

1.0.0

.

removeAll ():Void

Removes all items from the collection, decreasing its length to zero.

Available since

1.0.0

.

removeAt (index:Int):T

Removes an item from the collection at the specified index, decreasing the length by one.

Available since

1.0.0

.

set (item:T, index:Int):Void

Replaces the item at the specified index in the collection with a new item.

Available since

1.0.0

.