Combinatorica`
Combinatorica`

LexicographicPermutations

LexicographicPermutations[l]

constructs all permutations of list l in lexicographic order.

更多信息和选项