Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

The tuple type

The tuple type represents an immutable, ordered collection of zero or more values.

()          # Empty tuple
(1;)        # Trailing semicolon required on 1-tuples
(1; 2)      # Trailing semicolon optional on tuples with arity greater than 1
(1; 2; 3)