combinatoricslib3
combinatoricslib3 copied to clipboard
k-Permutations - ordering of elements
From your k-Permutations example:
This will print six 2-permutations of (1, 2, 3):
[1, 2]
[2, 1]
[1, 3]
[3, 1]
[2, 3]
[3, 2]
How can I make the "sort ascending by column"?
[1, 2]
[1, 3]
[2, 1]
[2, 3]
[3, 1]
[3, 2]