capital and small letters by nn

int[]t="$System.in"
s=t.size()
o=''
(2**--s).times{o+=t.collect{(char)it}.join('')
for(i=s;i--&&(t[i]^=32)<96;)0}
print o

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

download

return to the top page