Scoop API

scoop:scoop.core:0.1.0

MutableArray

class MutableArray

source · line 73
public
public class MutableArray<T> : List<T>, IndexSet<Long, T>

A fixed-size array with replaceable element slots and zero-based Long indexing. Use ArrayList when the number of elements must change.

Extensions

function toArray

source · line 102
public
@Intrinsic("array_to_immutable")
    public fun toArray(): Array<T>

Copies the elements into independent immutable array slots.

function iterator

source · line 108
public
public override operator fun iterator(): Iterator<T>

Traverses the elements in index order and remains exhausted after reaching the end.