4 ms·
it's likely for usage in higher-order functions. i haven't used clojure but i assume you can do something like this: (map :foo hashofhashes) which would ge
by tokipin 18y ago
it's likely for usage in higher-order functions. i haven't used clojure but i assume you can do something like this:
(map :foo hashofhashes)
which would get the element :foo of every hash in hashofhashes
- pmjordan 18y agoThat's another good point, although the alternative isn't much longer: (map #(% :foo) hashofhashes) or if % has a chance of being nil: (map #(get % :foo) hashofhashes)