Sort by Length for OCaml Golf Competition by yak_ex(rakuda)

open List
let rec(!)?(p=read_line())l=[String.length p,p]@try!0with _->[];;map print_endline(map snd(sort compare!0))

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

download

return to the top page