On Sun, Mar 22, 2009 at 11:53 PM, Jeff Valk <jv-li...@tx.rr.com> wrote:
> For the record, I think the original approach is the most clear. And it's 
> actually shorter.
>
> (defn mapmap [f m]
>  (zipmap (keys m) (map f (vals m))))

But it traverses m twice, which is likely to be less efficient.

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

Reply via email to