Static variables

staticread onlylength:Int

Static methods

staticinlineappend(this:Array<T>, el:T):ReadonlyArray<T>

staticinlineconcat(this:Array<T>, that:ReadonlyArray<T>):ReadonlyArray<T>

staticinlineempty<T>():ReadonlyArray<T>

staticinlinehead(this:Array<T>):Null<T>

staticindexOf(this:Array<T>, el:T, ?eq:(T, T) ‑> Bool):Int

staticinsertAfter(this:Array<T>, ref:T, el:T, ?eq:(T, T) ‑> Bool):ReadonlyArray<T>

staticinlineinsertAt(this:Array<T>, pos:Int, el:T):ReadonlyArray<T>

staticinlineinsertBefore(this:Array<T>, ref:T, el:T, ?eq:(T, T) ‑> Bool):ReadonlyArray<T>

staticinlineiterator(this:Array<T>):Iterator<T>

staticlastIndexOf(this:Array<T>, el:T, ?eq:(T, T) ‑> Bool):Int

staticinlinepop(this:Array<T>):Tuple<Null<T>, ReadonlyArray<T>>

Removes and returns the value at the end of the array. The original ReadonlyArray is unchanged.

staticinlineprepend(this:Array<T>, el:T):ReadonlyArray<T>

staticinlinepush(this:Array<T>, el:T):ReadonlyArray<T>

Alias for append

staticreduce<X>(this:Array<T>, f:(X, T) ‑> X, initial:X):X

staticreducei<X>(this:Array<T>, f:(X, T, Int) ‑> X, initial:X):X

It is the same as reduce but with the extra integer index parameter.

staticinlineremove(this:Array<T>, el:T, ?eq:(T, T) ‑> Bool):ReadonlyArray<T>

staticinlineremoveAt(this:Array<T>, pos:Int):ReadonlyArray<T>

staticreplace(this:Array<T>, ref:T, el:T, ?eq:(T, T) ‑> Bool):ReadonlyArray<T>

staticinlinereplaceAt(this:Array<T>, pos:Int, el:T):ReadonlyArray<T>

staticreverse(this:Array<T>):ReadonlyArray<T>

staticshift(this:Array<T>):Tuple<Null<T>, ReadonlyArray<T>>

Removes and returns the value at the beginning of the array. The original ReadonlyArray is unchanged.

staticinlinetail(this:Array<T>):ReadonlyArray<T>

staticinlinetoArray(this:Array<T>):Array<T>

staticinlineunsafe(this:Array<T>):Array<T>

staticinlineunshift(this:Array<T>, el:T):ReadonlyArray<T>

Alias for prepend