def f(a,p){|([],_)=>Nemerle.IO.print(p+"\n")|_=>a.Iter(x=>f(a.Filter(_!=x),if(p=="")x else p+" "+x))}f(["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