array

The main array type used in Openplanet.


The main array type used in Openplanet.

Behaviors

T[]@ $list(int&in type, int&in list) { repeat T }

Methods

T[]& opAssign(const T[]&in) Operator obj = x

bool opEquals(const T[]&in) const Operator obj == x, obj != x

T& opIndex(uint index) Operator obj[x]

const T& opIndex(uint index) const Operator obj[x]

uint get_Length() const Property x = obj.Length

void set_Length(uint) Property obj.Length = x

int Find(const T&in value) const

int Find(uint startAt, const T&in value) const

int FindByRef(uint startAt, const T&in value) const

int FindByRef(const T&in value) const

void InsertAt(uint index, const T&in value)

void InsertAt(uint index, const T[]&inout arr)

void InsertLast(const T&in value)

bool IsEmpty() const

void RemoveAt(uint index)

void RemoveLast()

void RemoveRange(uint start, uint count)

void Reserve(uint length)

void Resize(uint length)

void Reverse()

void Sort(array::less&in, uint startAt = 0, uint count = uint ( - 1 ))

void SortAsc()

void SortAsc(uint startAt, uint count)

void SortDesc(uint startAt, uint count)

void SortDesc()