Sort by Length for OCaml Golf Competition by shimomura

import List\x0d
main=getContents>>=mapM(putStrLn.snd).sort.map(\t->(map(\_->'{')t,t)).lines

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

download

return to the top page