View source

abstract thx.Tuple1<T0>(T0) from T0 to T0

import thx.Tuple;

Available on all platforms

Tuple1 is a tuple with one value. It maps directly to its own T0 types.

Class Fields

inline function arrayToTuple<T>(v:Array<T>):Tuple1<T>

Instance Fields

var _0(get,null):T0

inline function new(_0:T0):Tuple1<T0>

Constructs an instance of Tuple1 passing a value T as an argument.

inline function toString():String

Provides a string representation of the Tuple

inline function with<T1>(v:T1):Tuple2<T0, T1>

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