tuples

Immutable data sequences

Tuples are ordered collections of elements, fundamental in mathematics and computing.

In math, a tuple groups values in sequence—a pair is a 2-tuple, a triple is a 3-tuple.

In programming, tuples resemble lists but are typically immutable: The function returns a tuple of coordinates.

The word rhymes with either "couples" or "pupils" depending on the speaker.

datastructure

immutable

Incapable of being changed

  • listSequence of recorded items
  • arrayOrdered collection or display
  • collectionGathered set of items

element · index · Python · datatype · unpacking · nesting · concatenation · initialization · packing · iterable

mathematics

triple

Group of three

relation · function · element · combinatorics · permutation · notation · parentheses

pair

couple

Two linked together

  • duoTwo working together
  • dyadTwo forming one
  • doubletFitted Renaissance jacket

binary · coordinate · key-value · mapping · association · linked · grouped · paired · twin · match

relational

database

Organized digital information collection

  • tableHorizontal furniture surface
  • rowLinear arrangement across
  • recordPreserved account or achievement

SQL · schema · join · query · attribute · relation · column · constraint · projection · selection

Categories
Opposites
mutability

tupleslists

Ordered item collections

arrays · vectors

ordering

tuplessets

Grouped items together

scalars · dictionaries · bags · primitives

cardinality/structure

tuplesscalars

Direction-free numerical values

singletons · primitives · streams

Family

quintuple, sextuple, tuple

Familiarity
Top 1,000,000
Profile
Used worldwide · Timeless · Abstract · Rated G