character subsets by nn

s="$System.in".replace('oooo','o').reverse()
l=s.size()-1
(0..<2**l).any{i->println~(l..0).sum{2**it&2*i?s[it]:''}}

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

download

return to the top page