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):
Prescreened by: Alex Miller
Simple patch attached. I did not find any existing tests for assoc-in but I could add them if wanted.
for the sake of symmetry with `assoc` I'd love to see this ticket fixed
Do you need the "if kvs" check?
Should have tests.
Sorry for the delay - I don't get notifications from this JIRA for some reason.
The patch now includes tests.
Both `if` checks are necessary as we have 3 possible outcomes there:
1/ No more kvs (we are finished)
2/ More kvs (we need to recur)
3/ A sequence of keys but no value (throw IAE)