twotuple
Twotuple, also called a 2-tuple or an ordered pair, is a mathematical object consisting of two components arranged in a specific order. It is the simplest nontrivial n-tuple; the first component is distinguished from the second, so (a,b) generally differs from (b,a). A twotuple can be viewed as an element of the Cartesian product A × B, where a ∈ A and b ∈ B.
Formally, an n-tuple of elements from a set X is a function f from the index set
Examples: (3,5) is a 2-tuple whose first component is 3 and second is 5; (x,y) is an
Relation to programming: many languages provide 2-tuple or pair types to group two values; these are used