Permutations by tails (irori)

6,{.{1$1$-p{1$\+}%\;~}%[[]]if}:p~{" "*n}%

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top