def f a,b a[0]?a.map{|i|f a-[i],b+[i]}:puts(b*" ")end f [*0..5],[]

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

download

return top