Instances of the Tuple class are fixed-length, immutable sequences
of values.
Tuple instances are constructed using the comma operator. By
convention, tuple expressions are often placed within parentheses:
@example
(1, 2, "x") -- 3-tuple with items 1, 2 and "x"
1, 2, "x" -- Equivalent to above, but without parentheses
@end
There is special syntax for constructing an empty tuple and a single-item
tuple:
@example
() -- An empty tuple
(True,) -- A single-item tuple
@end
@see
@link tupletypes.html
in Introduction to Alore Type System.
@end
Tuple methods
@fun length() as Int
@desc Return the length of the tuple.
@end
@fun iterator() as Iterator