ehangc by Lost_dog

m@main=getLine>>=putStrLn.f>>m
f[x]=[x]
f(x:y)=last y:init y++[x]

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

download

return to the top page