> I have a need to convert maps in the following ways: > > Given a map with keyword keys, I need a map with uppercase string keys > - and vice versa. > > { :stuff 42 :like 13 :this 7 } <=> { "STUFF" 42 "LIKE" 13 "THIS" 7 }
What about this - (into {} (for [[k v] { :stuff 42 :like 13 :this 7 }] [(.toUpperCase (name k)) v])) Regards, BG -- Baishampayan Ghose b.ghose at gmail.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