2tuple
A 2tuple, also called a pair or ordered pair, is an ordered collection of two elements. It is typically written as (a, b), where a is the first component and b is the second. A 2tuple belongs to the Cartesian product A × B of two sets A and B, meaning the first element comes from A and the second from B.
In set-theoretic constructions, an ordered pair can be defined to preserve order, such as the Kuratowski definition
In programming and data representation, 2-tuples appear as pair types or two-field records. They are used to
Relation to general n-tuples: a 2tuple is the simplest nontrivial n-tuple, and more generally an n-tuple is
Examples include (3, "apple"), (x, y), and (5, 5). In a database context, a row with two