Sort by Length for OCaml Golf Competition by pooq

x:[];while 0#(v:?read\-line(?-,?-,0))do x:cons([slength(v),v],x);for v in sort(x)do dispterms(v[2]);

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

download

return to the top page