>> (defmacro in?
>>  "Returns true if colle contains elm, false otherwise."
>>  [colle elm]
>> `(if (some #{~elm} ~colle) true false))

Yes. Should not be a macro. (There is no reason for it to be a macro).
On top of that, it is not very often useful to convert nil to false as
clojure understands nil/not-nil as false/true everywhere.
(Someone corrects me if there is a counter example.)

Might be useful for java interop?
Then I would define a
(defn to-bool [x]
   (if x true false))
and use it when necessary.

-- 
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

Reply via email to