Closed jcoffin closed 10 years ago
Of course it is probably better to use into
with empty
so the result collection type matches the collection type passed in.
I just noticed that Prismatic's Plumbing has a map-keys
function that seems to do this.
Medley also has map-keys
.
Bah! I can't believe I missed it! Sorry for the false alarm.
Would that be something suitable for this library? Lately I've been needing a function like this:
I'm not sure if that is a good name as it might be confused with
clojure.set/rename-keys
. What do you think?