On 27 May 2011 18:01, MarisO <[email protected]> wrote:
> there is find-first in contrib
>
> (find-first #(not (nil? %)) sol)

Or:

(find-first (complement nil?) coll)

or:

(first (filter (complement nil?) coll))

but I like Meikel's (first (keep identity coll)) suggestion, even if I
find it less straight-forward.  I'd also prefer to avoid contrib for a
simple thing like this.

-- 
Michael Wood <[email protected]>

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