
permute - permutations of a list

Calling sequence:
permute(n)

Parameter:

n  --   list or cardinal number

Summary:

If n is a listthen permute returns all permutations in the form of a list. If n
is a cardinal number then this is interpreted as a list consisting of the first n
cardinal numbers.

>>  permute([1,2]);

     [[1,2],[2,1]]

>>  permute(2);

     [[1,2],[2,1]]

