2009/12/20 ataggart <alex.tagg...@gmail.com> > > > On Dec 19, 8:02 pm, Mike K <mbk.li...@gmail.com> wrote: > > [:foo] evaluates to true by virtue of being a keyword. > > To be precise, it evaluates to true by virtue of it not being nil nor > boolean false; being a keyword doesn't really have anything to do with > it. >
To be even more precise, it evaluates to :else. And since :else is neither the value false neither the value nil, it is considered "logically true". > > user=> (cond nil :n false :f (Object.) :t) > :t > > -- > 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<clojure%2bunsubscr...@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 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