Tuple4 is a tuple with four values. It maps to an anonymous object with fields _0, _1, _2, and _3.

Static methods

@:fromstaticinlinearrayToTuple4<T>(v:Array<T>):Tuple4<T, T, T, T>

staticinlinedropLeft(this:{_3:T3, _2:T2, _1:T1, _0:T0}):Tuple3<T1, T2, T3>

dropLeft returns a new Tuple with one less element by dropping the first on the left.

staticinlinedropRight(this:{_3:T3, _2:T2, _1:T1, _0:T0}):Tuple3<T0, T1, T2>

dropLeft returns a new Tuple with one less element by dropping the last on the right.

staticinlineflip(this:{_3:T3, _2:T2, _1:T1, _0:T0}):Tuple4<T3, T2, T1, T0>

flip returns a new Tuple with the values in reverse order.

staticinlineof<T0, T1, T2, T3>(_0:T0, _1:T1, _2:T2, _3:T3):Tuple4<T0, T1, T2, T3>

Static constructor, required to work around Haxe compiler bug.

staticinlinetoString(this:{_3:T3, _2:T2, _1:T1, _0:T0}):String

Provides a string representation of the Tuple

staticinlinewith<T4>(this:{_3:T3, _2:T2, _1:T1, _0:T0}, v:T4):Tuple5<T0, T1, T2, T3, T4>

Creates a new Tuple with the addition of the extra value v. The Tuple of course increase in size by one.