if-let and when-let also come in handy in a lot of those cases. If the nils already are in a data structure, there are (filter identity ..)and (remove nil? ..) to remove false and/or nil values from sequences. On associatives, there is an :or key available in the destructuring dsl: (let [{x :foo :or {x "default"}} m] ..) and you can use the the default parameter of lookups like (:foo m "default") (get m :foo "default"). Beware that in the latter two, the default is evaluated, even if the key is found.
-- -- 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.