On Fri, May 27, 2011 at 16:03, Ulises <[email protected]> wrote:
> You could use identity as a predicate to filter:
>
> user=> (def s [nil nil 1 2 3])
> #'user/s
> user=> (first (filter identity s))
> 1
> user=>

(first (filter identity [nil false :oops])) --> :oops

false is not nil.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to