Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Clojure maps generally have keywords as keys and keywords are callable as getters:

    (map :title orders)
Is analogous to:

    (map #(get % :title) orders)
Which is shorthand for:

    (map (fn [order] (get order :title)) orders)


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

Search: