Tuple

From testwiki
Jump to navigation Jump to search

In mathematics, a tuple is a finite sequence of objects. Sometimes, the finite sequence is also called an ordered list. This means that the order of the objects matter. In a tuple, the objects are either enclosed within parentheses (such as (1,2)),[1] or within angle brackets (such as 1,2).[2] Each of the objects in the list has a certain type. A tuple consisting of n entries is called an n-tuple.[3] Tuples are used to describe mathematical objects that are made of certain, well-defined components. They are also used very frequently with databases. Tuples are different from sets:

  • A certain element can be in a tuple more than once.
  • The order in which the elements appear in a tuple is important.

In other words, tuples are like ordered multisets.

References

Template:Math-stub