View source
abstract Tuple5<T0, T1, T2, T3, T4>({_4:T4, _3:T3, _2:T2, _1:T1, _0:T0})
package thx
from {_4:T4, _3:T3, _2:T2, _1:T1, _0:T0}, to {_4:T4, _3:T3, _2:T2, _1:T1, _0:T0}
import thx.Tuple
Tuple5
is a tuple with five values. It maps to an anonymous object with fields _0
, _1
, _2
, _4
, and _5
.
Static methods
staticinlinedropLeft(this:{_4:T4, _3:T3, _2:T2, _1:T1, _0:T0}):Tuple4<T1, T2, T3, T4>
dropLeft
returns a new Tuple with one less element by dropping the first
on the left.
staticinlinedropRight(this:{_4:T4, _3:T3, _2:T2, _1:T1, _0:T0}):Tuple4<T0, T1, T2, T3>
dropLeft
returns a new Tuple with one less element by dropping the last
on the right.
staticinlineflip(this:{_4:T4, _3:T3, _2:T2, _1:T1, _0:T0}):Tuple5<T4, T3, T2, T1, T0>
flip
returns a new Tuple with the values in reverse order.
staticinlineof<T0, T1, T2, T3, T4>(_0:T0, _1:T1, _2:T2, _3:T3, _4:T4):Tuple5<T0, T1, T2, T3, T4>
Static constructor, required to work around Haxe compiler bug.