Sort by Length for OCaml Golf Competition by notogawa

import List
main=interact(\s->sort[(x>>" ",x++"\n")|x<-lines s]>>=snd)

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

download

return to the top page