Creates all unordered pairs of some objects or of the first
x natural numbers.
Usage
unorderedPairs(x)
Arguments
x
Either an arbitrary vector of literals or a natural number
Value
A matrix with two rows, each column holding one pair.
Details
If x has length one, all unordered pairs of the first x
natural numbers are created. If x has more than one element,
all unordered pairs of the elements of x are created.