There are several, depending on what exactly you want to skip. Your example would just be
(let [foo (or a b c)] ...) There are also some-> and cond->, which you may find useful in other contexts. On Wednesday, March 13, 2013 10:31:33 PM UTC+1, Brian Craft wrote: > > Is there a common idiom for skipping blank or null values, as you might do > in javascript like > var foo = a || b || c; > > > -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.