public class Tuple<...Ts> extends Object:
Immutable positional tuple.
A tuple is a fixed-size ordered product where each position may carry a distinct type.
pair as Tuple<String, Int> = ("age", 42)
print(pair[0]) # "age"
print(pair[1]) # 42@param <...Ts> Positional element types.
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly native property | sizesize as ULong |
Number of elements in this tuple. |
| Modifier and Type | Member | Description |
|---|---|---|
| public native | Tuple | Builds a tuple from the provided positional values. |
| Modifier and Type | Member | Description |
|---|---|---|
| public native override | toStringtoString() as String |
Returns a normalized textual representation. |
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly native | operator[](index as Int) as Object | Returns the value at the given position. |