String Halving by tanon

#!perl -p
$a=($r='[^{}]')x($n//=500);1while s/($a$r?)($a)/{$1}{$2}/;--$n&&redo;$_="{$_}"

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

download

return to the top page