$<.read.scan(/.+/).reduce(''){|a,b|(m=a.size)<(n=b.size)?(a=(a*99)[0,n-1]):(b=(b*99)[0,m]);puts(s=b.chars.zip(a.chars).flatten.join);s}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page