struct Tuple<each T>

Conditionally conforms to: IComparable, IDifferentiable

Description

A variadic generic storing the product of several types.

The member names of individual values are _0, _1, _2, …

New tuples can also be constructed by swizzling an existing tuple with the concatenation of these names, for example x._2_1_0 will return the first three members of the tuple x in reverse order.

When all tuple elements conform to IComparable tuples can themselves be compared according to a lexicographic ordering.

The number of elements in a tuple is given by the countof function.

Generic Parameters

T

Methods

Conditional Conformances

Conformance to IComparable

Tuple<each T> additionally conforms to IComparable when the following conditions are met:

Conformance to IDifferentiable

Tuple<each T> additionally conforms to IDifferentiable when the following conditions are met: