On May 12, 2015, at 1:54 PM, Shantanu Kumar <[email protected]> wrote:
> I agree about the counter-intuitiveness. I'm only wondering whether the error
> message is a bit misleading "contains? not supported on type:
> java.lang.String" because of course (contains? "hello" 2) works fine.
It seems odd that (contains? "abc" 2) works, at least to me. It's clearly
intentional, from this line in RT.java:
else if(key instanceof Number && (coll instanceof String ||
coll.getClass().isArray())) {
Can anyone comment on why Strings are explicitly supported here?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.