Power Set by leonid

*W=0
eval'*w=0
W.map{|*v|W=w+=w.map{|V|V==0?v:V+v}}
'.*getc%7
puts W.inspect.tr'[]','{}'

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

download

return to the top page