On Apr 6, 2010, at 12:20 AM, Mark Engelberg <mark.engelb...@gmail.com>
wrote:
On Mon, Apr 5, 2010 at 8:56 PM, Richard Newman <holyg...@gmail.com>
wrote:
Why this behavior?
It's useful: e.g., you can use a set as a filter.
user=> (filter #{2 3 4 5} (range 1 10))
(2 3 4 5)
filter works just as well with a function that returns true and
false, so that's not a particularly good example.
"Which of the items in this set comes first in this vector?"
(some #{:b :c} [:a :c :d])
;=> :c
--Chouser
--
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
To unsubscribe, reply using "remove me" as the subject.