Sort by Length for OCaml Golf Competition by hirose

let rec(!)z=try Sort.merge(fun x y->(z x,x)<(z y,y))!z[read_line()]with _->[];;List.map print_endline!String.length

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

download

return to the top page