Tuples

Immutable fixed-size sequences; accessed by numeric index.

Summary

Tuples are written with parentheses: (1, "hello", true). Elements are accessed with .0, .1, etc. They are immutable and fixed-length. len(t) returns the element count. Tuples are commonly used as multiple return values and in destructuring bindings.

Canonical

let t = (1, "hello", true)
t.0                              -- 1
t.1                              -- "hello"
t.2                              -- true
len(t)                           -- 3

Tuples are immutable fixed-size sequences. Access elements with .0, .1, etc.