Vocabularymath.
combinatoricsInputsOutputsWord descriptionOutputs a sequence containing all permutations of
seq in lexicographical order.
ExamplesUSING: math.combinatorics prettyprint ;
{ 0 1 2 } all-permutations .
{ { 0 1 2 } { 0 2 1 } { 1 0 2 } { 1 2 0 } { 2 0 1 } { 2 1 0 } }
Definition