On Wed, Sep 29, 2010 at 11:53 PM, Baishampayan Ghose <b.gh...@gmail.com> wrote: > (into {} (for [[k v] { :stuff 42 :like 13 :this 7 }] > [(.toUpperCase (name k)) v]))
(defn- to-struct [r] (into {} (for [[k v] r] [(.toUpperCase (name k)) v])) That is certainly nicer than most of my attempts, thank you! Any reason for .toUpperCase instead of clojure.string/upper-case? Thanx also to David for the (empty m) tip (but I'm only working with hash maps at the moments). -- Sean A Corfield -- (904) 302-SEAN Railo Technologies, Inc. -- http://getrailo.com/ An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood -- 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