On Mar 10, 2:45 pm, "gray...@gmail.com" <gray...@gmail.com> wrote:
> Doesn't (some pred coll) do the same thing as (first (filter pred
> coll))?

Not quite, because ...

(some even? [1 2 3]) --> true
(first (filter even? [1 2 3])) --> 2

`some' only works like that when the "predicate" returns it's argument
instead of true.

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