Class Tuple
The Tuple
class provides a fixed-size container over a set of types.
Tuple
is ideal for situations where a variety of data is needed, but a
class is too complex.
Tuple
literals are created by <[value1, value2, ...]>
. Member of the
Tuple
class can be accessed through subscripts. Unlike List
, Tuple
does not support negative indexes.