Word frequency count FIXED by leonid

_=$<.read.downcase.tr('!-`~','').split.sort
puts$*|_.map{|w|[_.grep(w).size,w]*' '}

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

download

return to the top page