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

let rec(!)?(x=read_line())y=(String.length x,x)::try!0with _->[]let(@)=List.map;;print_endline@snd@List.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