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

8 lines
94 B
Text
Raw Permalink Normal View History

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