View source
abstract Tuple2<T0, T1>({_1:T1, _0:T0})
package thx
from {_1:T1, _0:T0}, to {_1:T1, _0:T0}
import thx.Tuple
Tuple2
is a tuple with two values. It maps to an anonymous object with fields _0
and _1
.
Static variables
Static methods
staticinlinedropLeft(this:{_1:T1, _0:T0}):Tuple1<T1>
dropLeft
returns a new Tuple with one less element by dropping the first
on the left.
staticinlinedropRight(this:{_1:T1, _0:T0}):Tuple1<T0>
dropLeft
returns a new Tuple with one less element by dropping the last
on the right.
staticinlineflip(this:{_1:T1, _0:T0}):Tuple2<T1, T0>
flip
returns a new Tuple with the values in reverse order.