Hacker News new | past | comments | ask | show | jobs | submit login

Replying to myself. Just googled it and I had the code wrong shame

(defn count-words [coll] (reduce #(merge-with + %1 {%2 1}) {} coll))




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: