Permutations by murky-satyr

+function f(a,r,x){for(1+a[0]?x=0:print(r.join(" "));1+(i=a[x]);)f(a.slice(0,x).concat(a.slice(++x)),r.concat(i))}([0,1,2,3,4,5],[])

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

download

return top