Perhaps even more importantly, tuples are important because they are the building blocks of ``functions''. In this context, a function is not a subroutine that returns a value. A function in this context is a mapping from a set of values to another set of values. A value in this context is represented by a tuple.
Tuples are also important because they can be used to represent the
result of the Cartesian product of sets. The Cartesian product of two
sets,
and
is defined as follows:
Here is an example:
Note that the result of a Cartesian product is a set itself, which means
it can be ``multiplied'' to another set. Furthermore, Cartesian products
are associative, which means
.