Sort by Length for OCaml Golf Competition by mususu.nisshy

open List
let rec(!)x=try Scanf.scanf"%s\n%n"(fun s n->(n-x,s)::!n)with z->[];;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