Tuples

WMA link


Tuples[list, n]

returns a list of all n-tuples of elements in list.

Tuples[{$list_1$, $list_2$, ...}]

returns a list of tuples with elements from the given lists.

The head of list need not be List:

However, when specifying multiple expressions, List is always used:

Table