Tapestry 5 includes a case-insenstive Map and the basic idea can be adapted. It was important to that code base that the case of keys be kept, but that lookup by key be case insensitive. The hash code is based on a case normalized version of the true key, and comparisons are based on equalsIgnoreCase().
I haven't looked at how hard this would be to implement in Clojure; it would be nice if there was those features (let me specify how to hash keys, let me specify how to compare keys). On Mon, Jan 18, 2010 at 2:22 PM, pmf <phil.fr...@gmx.de> wrote: > On Jan 18, 1:59 pm, Laurent PETIT <laurent.pe...@gmail.com> wrote: >> There's a library in clojure.contrib which allows to create your own >> getters / setters for maps : >> >> http://richhickey.github.com/clojure-contrib/fnmap-api.html > > Not wanting to interrupt this thread, but this is amazing! I could > have used this a dozen of times in the past few months. Thanks for > pointing this out! > > -- > 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 > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.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