Hi, 

Function contains? 
(http://clojuredocs.org/clojure_core/clojure.core/contains_q) returns true if 
key is present in the given collection, although arguably on some data 
structures
one would expect behaviour to be different. In fact it's already different on 
sets:

(contains? #{:a :b :c} :a) ; => true

Would that be reasonable to change behaviour for other types too like:

(contains? [:a :b :c] :a)   ; => false
(contains? "foo" "o")       ; => false
(contains? '(1 2 3) 1)       ; => false

So they do return `true` instead ?

If that will break too much code, maybe some other function can be added 
instead ?
Regards
--
Irakli Gozalishvili
Web: http://www.jeditoolkit.com/

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to