RosettaCodeData/Task/Permutations-by-swapping/J/permutations-by-swapping-3.j

8 lines
112 B
Text
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
(_1^2|i.!3),. bfsjtn^:(i.!3) bfjt0 3
1 _1 _2 _3
_1 _1 _3 _2
1 _3 _1 _2
_1 3 _2 _1
1 _2 3 _1
_1 _2 _1 3