Tuple Object

A construct for representing a pair of values.

A tuple is used in functions such as constraint hooks where you may want to return more than one value to FMA. The advantage of using a tuple over a regular array is that the values can be anything (including arrays) and allow FMA to treat it uniformly.

Static Methods

    of(a: Any, b: Any) -> Object

    Create a tuple of a pair of values.

    is(x: Any) -> Boolean

    Test whether a given value is a tuple record.

    firstOf(x: Object) -> Any

    Retrieve the first value from a tuple record.

    secondOf(x: Object) -> Any

    Retrieve the second value from a tuple record.