Is there a good way to make a map case-insensitive for string keys? I
first thought just wrapping some function around it would be it, but
when I try it, it is really a bit more involved. Has anyone done this,
or is there a recommended way?

Do you want real case-insensitivity (i.e., you preserve the case of some item in the map), or just down-casing?

To do that you need to alter the hashing and equality functions of the map.

I have a Java implementation of a DowncaseMap which downcases String keys (and thus avoids specifying the hash function), but obviously the output is lowercase. I'm happy to share.

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

Reply via email to