We're updating the issue view to help you get more done. 

Support for multiple key(s)-value pairs in assoc-in

Description

It would be nice if assoc-in supported multiple key(s)-to-value pairs (and threw an error when there were an even number of arguments, just like assoc):

1 2 3 4 user=> (assoc-in {} [:a :b] 1 [:c :d] 2) {:a {:b 1}, :c {:d 2}} user=> (assoc-in {} [:a :b] 1 [:c :d]) IllegalArgumentException assoc-in expects even number of arguments after map/vector, found odd number

Patch: clj-1771.patch

Prescreened by: Alex Miller

Environment

All

Status

Assignee

Unassigned

Reporter

Griffin Smith

Labels

None

Approval

Vetted

Patch

Code and Test

Fix versions

Affects versions

Release 1.7

Priority

Major