<< Back to previous view

[CLJ-981] clojure.set/rename-keys deletes keys when there's a collision Created: 04/May/12  Updated: 15/Jun/12  Resolved: 15/Jun/12

Status: Closed
Project: Clojure
Component/s: None
Affects Version/s: Release 1.3
Fix Version/s: Release 1.5

Type: Defect Priority: Minor
Reporter: Ed Bowler Assignee: Unassigned
Resolution: Completed Votes: 0
Labels: None

Attachments: Text File rename-keys-fix.patch    
Patch: Code and Test
Approval: Ok


(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

Comment by Ed Bowler [ 04/May/12 1:31 PM ]

added fix

Generated at Wed Sep 20 16:56:28 CDT 2017 using JIRA 4.4#649-r158309.