ntuplas
Ntuplas, singular ntupla, refer to n-element ordered tuples used in mathematics and computer science as a generalization of ordinary two- or three-element tuples. An ntupla is an ordered sequence (a1, a2, ..., an) where each element ai comes from a corresponding set Ai. The collection of all such ntuplas is the Cartesian product A1 × A2 × ... × An.
Key properties include that the order of elements matters, elements can repeat, and the length of an
Applications of ntuplas span several fields. In databases, a relation of arity n is modeled as a
Notation commonly uses parentheses, as in (a1, a2, ..., an), and, when all ai belong to numeric domains,