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

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