On Fri, Sep 17, 2010 at 08:58, Michael Wood <esiot...@gmail.com> wrote: > On 17 September 2010 00:56, Michael Ossareh <ossa...@gmail.com> wrote: >> Meikel, >> >>> >>>> (recur (cond (not (nil? (data key))) >>>> (true? true) >>> >>> *ieeck* Please do (cond ... :else default-clause). Not true, or (true? >>> true) or other stuff. >> >> Wow, I somehow missed the :else option in cond? I've got that (true? >> true) stuff scattered all over my code - going to change that right >> now. Thanks for showing me this. > > It's not actually an ":else option in cond". Anything that is not > false or nil can work there, so :any-arb-keyword would work just as > well as :else. But by convention, Clojure programmers tend to use > :else. >
Thanks for confirming my thoughts, Michael. Indeed I immediately checked the docs and couldn't find :else referenced. -- 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