klyn.collections.Tuple.operator[]
method
public readonly native operator[](index as Int) as Object
Description

Returns the value at the given position.

Supports negative indices:

  • -1 is the last element
  • -2 is the previous one

When the index is known at compile time, the compiler can infer the precise positional type.

Parameters
  • index Zero-based index (or negative reverse index).
Returns

Stored value at the requested position.

Throws
  • IndexException if index is invalid.