Sort by Length for OCaml Golf Competition by kt3k

import sys
a=list(sys.stdin)
for x,y in sorted(zip(map(len,a),a)):print y,

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

download

return to the top page