Word frequency count FIXED by murky-satyr

new TreeSet(a="$System.in".toLowerCase().grep(~/[a-z ]/).sum().tokenize()).any{println"${a.count it} $it"}

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

download

return to the top page