Hi,
On 29 Apr., 01:38, Mark Engelberg <[email protected]> wrote:
> 1. Don't include seq-contains? The behavior you want can usually be
> achieved by using (some #{item} coll). Disadvantage - if you're
> testing to see if the collection contains nil, that won't work.
Not entirely correct. (some #(= % item) coll) works always and is
basically how seq-contains? is implemented. However there are
opinions that some is not obvious enough.
Sincerely
Meikel
--
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