On Mar 23, 2009, at 16:36, Jeff Valk wrote:

>> I prefer the into version which allows to write a mapmap that  
>> preserves the
>> map type (eg sorted or hash):
>>
>> (defn mapmap [f m]
>>   (into (empty m) (for [[k v] m] [k (f v)])))
>
> Agreed. If it were in contrib, this would make most sense.

It is already in clojure.contrib, with exactly that implementation,  
and for exactly that reason:

        http://code.google.com/p/clojure-contrib/source/browse/trunk/src/ 
clojure/contrib/generic/functor.clj

Konrad.




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