Changes for clojure.set/rename-keys

Stathis Sideris on Mon, 15 Oct 2012
user=> (rename-keys {:a 1, :b 2} {:a :new-a, :b :new-b})
{:new-a 1, :new-b 2}


;; The behavior when the second map contains a key not in the first is interesting.
;; I suspect you shouldn't depend on it. (Clojure 1.1 - no longer happens in 1.2.1)

user=> (rename-keys {:a 1} {:b :new-b})
{ :a 1, :new-b nil}
zkim on Sun, 26 Sep 2010
user=> (rename-keys {:a 1, :b 2} {:a :new-a, :b :new-b})
{:new-a 1, :new-b 2}


;; The behavior when the second map contains a key not in the first is interesting.
;; I suspect you shouldn't depend on it. (Clojure 1.1)

user=> (rename-keys {:a 1} {:b :new-b})
{ :a 1, :new-b nil}
Brian Marick on Sat, 10 Jul 2010
user=> (rename-keys {:a 1, :b 2} {:a :new-a, :b :new-b})
{:new-a 1, :new-b 2}


The behavior when the second map contains a key not in the first is interesting. I suspect you shouldn't depend on it. (Clojure 1.1)


user=> (rename-keys {:a 1} {:b :new-b})
{ :a 1, :new-b nil}