Classes | Collections > Ordered

Order : SequenceableCollection : Collection : Object

an order of elements with a numerical index
Subclasses: SparseArray


Keeps elements in an order and allows to put them at arbitrary slots without having to allocate a large array.

NOTE: -put and -at are slower than in IdentityDictionary / PriorityQueue, -do is faster.

Class Methods

Order.new(size: 8)

Create a new order.

Order.newFromIndices(array, indices)

Create a new order from given items and indices.

Inherited class methods

Instance Methods

.doRange(function, from: 0, to)

Iterate over a range of the order's items.


Return the current write position.

Inherited instance methods

Undocumented instance methods



.array = value









.indices = value






.put(index, obj)




.removeAt(index, obj)