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)

If you want your alternative, use contains?:

user=> (contains? #{true false} false)
true

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

Reply via email to