Read Diagonally by yh

main=f 0
f n=getLine>>=(n#)
n#s|length s>n=n%s
n#s=0%s
i%s=putChar(s!!i)>>f(i+1)

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

download

return to the top page