String Halving by clock

def h(s)return"{#{s[1]?h(s[0,n=-~s.size/2])+h(s[n,n]):s}}"end
$><<h(*$<)

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

download

return to the top page