Hi, On Thu, Apr 29, 2010 at 7:48 AM, Meikel Brandmeyer <m...@kotka.de> wrote: > > On 29 Apr., 01:38, Mark Engelberg <mark.engelb...@gmail.com> 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. >
(some {item true} coll) works with nil too, but usally all the love goes to #(= % item, it's unfair! :-) Christophe -- 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