paren matching by nn

s=0
"$System.in".any{c->s=c.tr('([{',')]}')-c+s
s-=c=c-'?'?:s[0]
print c}

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

download

return to the top page