clojure.set/rename-keys deletes keys when there's a collision

Description

(set/rename-keys {:a "one" :b "two" :c "three"} {:a :b :b :a}) returns {:b "one" :c "three"}
should be {:a "two" :b "one" :c "three"}

I have created a pull request for a fix, here: https://github.com/clojure/clojure/pull/23

Environment

None

Attachments

1

Activity

Show:

Ed Bowler May 4, 2012 at 7:31 PM

added fix

Completed

Details

Assignee

Reporter

Approval

Ok

Patch

Code and Test

Priority

Affects versions

Fix versions

Created May 4, 2012 at 6:35 PM
Updated June 15, 2012 at 5:09 PM
Resolved June 15, 2012 at 5:09 PM