View source

abstract thx.Tuple3<T0, T1, T2>({_2:T2, _1:T1, _0:T0}) from {_2:T2, _1:T1, _0:T0} to {_2:T2, _1:T1, _0:T0}

import thx.Tuple;

Available on all platforms

Tuple3 is a tuple with three values. It maps to an anonymous object with fields _0, _1, and _2.

Class Fields

inline function arrayToTuple3<T>(v:Array<T>):Tuple3<T, T, T>

inline function of<T0, T1, T2>(_0:T0, _1:T1, _2:T2):Tuple3<T0, T1, T2>

Static constructor, required to work around Haxe compiler bug.

Instance Fields

inline function new(_0:T0, _1:T1, _2:T2):Tuple3<T0, T1, T2>

Constructs an instance of Tuple3 the 3 required value.

inline function dropLeft():Tuple2<T1, T2>

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

inline function dropRight():Tuple2<T0, T1>

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

inline function flip():Tuple3<T2, T1, T0>

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

function map<T3>(f:T2 -> T3):Tuple3<T0, T1, T3>

inline function toString():String

Provides a string representation of the Tuple

inline function with<T3>(v:T3):Tuple4<T0, T1, T2, T3>

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