如果 assoc-in 能够支持多个键-值对,那会非常好(当参数数量为偶数时抛出错误,就像 assoc 一样)
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 预期在映射/向量之后有偶数个参数,但发现奇数个
*补丁:* clj-1771.patch
*预审者:* Alex Miller