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