Combinatorica`
Combinatorica`
LexicographicPermutations
constructs all permutations of list l in lexicographic order.
Details and Options
- To use LexicographicPermutations, you first need to load the Combinatorica Package using Needs["Combinatorica`"].