On Wednesday 17 December 2008 06:26, Mark Volkmann wrote: > ... > > It appears that you can create a sorted-map where all the keys are > symbols and you can create a sorted-map where all the keys are > strings, but you can't create a sorted-map where some of the keys are > symbols and some are strings. > I take it this is because, as you say above, symbols and strings > can't be compared to each other.
There's also (sorted-map-by ...): user=> (doc sorted-map-by) ------------------------- clojure.core/sorted-map-by ([comparator & keyvals]) keyval => key val Returns a new sorted map with supplied mappings, using the supplied comparator. So you can write a less stringent comparator if you like and use that to side-step this sort of exception. Randall Schulz --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---