Transpose by tabasa

o=[]\x0d
while gets\x0d
o<<$_\x0d
end\x0d
l=o.size;r=o[0].size\x0d
r.times{|i|\x0d
l.times{|j|print o[j][i,1]}\x0d
puts\x0d
}

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

download

return to the top page