I know this has been discussed on the list before to some extent, but
does clojure by default have any operations which actually do what
"contains?" sounds like it would do, for all collections? I know that
you can easily write something similar using "some", but often times
you just want to find if something is in a list of items.

I've seen Rich say that contains? is for associative things, but I
think it is an unfortunate name - if the idea is to express that the
collection has a value for that key, I think the name would ideally
express that, like:

contains-key?
has-key?
maps?

I see that clojure-contrib has includes?, which perhaps indicates that
clojure by default doesn't have such a function.
--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to