Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
snprbob86
on April 3, 2013
|
parent
|
context
|
favorite
| on:
Explicit vs. Clever
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: