Creates all unordered pairs of some objects or of the first
x natural numbers.
Usage
unorderedPairs(x)
Value
A matrix with two rows, each column holding one pair.
Arguments
x
Either an arbitrary vector of literals or a natural number
Author
Andreas Borg
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.