On 02/07/2012 09:48 PM, Cedric Greevey wrote:
One better way:(defn do-sum [some-coll] (reduce + (map :a some-coll))) Keywords can be used as functions.
Sure!
That's probably tidy enough not to feel the need to do something else, such as destructuring.
Yes, I understand. I'm starting to wrap my head around destructuring right now and I'm working to grasp it's use and structure.
All replies has been quite useful so far. Thank you all! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
