RosettaCodeData/Task/Permutations-by-swapping/Jq/permutations-by-swapping-3.jq
2017-09-25 22:28:19 +02:00

9 lines
194 B
Text

$ jq -c -n -f Permutations_by_swapping.jq
[1,["a","b","c"]]
[-1,["a","c","b"]]
[1,["c","a","b"]]
[-1,["c","b","a"]]
[1,["b","c","a"]]
[-1,["b","a","c"]]
"There are 32 permutations of 5 items."