On Tue, Jun 14, 2011 at 12:29 PM, Ambrose Bonnaire-Sergeant <abonnaireserge...@gmail.com> wrote: > "some" is a poster boy for Clojure's well thought out truthyness system, > this is a great example of the types of general functions it allows.
Notably, with a map as first argument it returns the first (truthy) mapped value for any of the keys in a coll: (if-let [f (some fn-map [:super-override :override :normal])] (f args)) -- Protege: What is this seething mass of parentheses?! Master: Your father's Lisp REPL. This is the language of a true hacker. Not as clumsy or random as C++; a language for a more civilized age. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en