Sort by Length for OCaml Golf Competition by kinaba

let rec(!)?(s=read_line())_=[String.length s,s]@try!0with _->[]let(^)=List.map;;print_endline^snd^Sort.list(<)!0

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

download

return to the top page