Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
runevault
on July 26, 2010
|
parent
|
context
|
favorite
| on:
Rules for Writing Clojure Programs
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:
(defn count-words [coll] (reduce #(merge-with + %1 {%2 1}) {} coll))