IT lexicon › Programming › Tuple

Tuple

Programming På svenska → Updated: 2026-05-24

Ordered collection of values with fixed length and types — (name: string, age: int).

Different from an array (all the same type). Most common as a return value when a function needs to give back two things. Python, Rust, TypeScript, F# have tuples. JS approximates with arrays.

← Back to the lexicon