Ok you said this too. :) But the non-booleanness of (some ...) isn't that 
important. The result of (some ...) is truthy, and can be used in any boolean 
context.

-Fred

--
Science answers questions; philosophy questions answers.

On Jul 21, 2010, at 8:07 PM, Frederick Polgardy wrote:

> http://richhickey.github.com/clojure/clojure.core-api.html#clojure.core/some
> 
> --
> Science answers questions; philosophy questions answers.
> 
> On Jul 21, 2010, at 4:45 PM, Travis Hoffman wrote:
> 
>> (defn any?
>> "Returns true if (pred x) is logically true for one x in coll, else
>> false."
>> {:added "1.3" :tag Boolean}
>> [pred coll]
>> (when (seq coll)
>>   (or (pred (first coll)) (recur pred (next coll)))))
> 

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