如果 {{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 预期在 map/vector 后的参数数量为偶数,但找到奇数个
*补丁:* clj-1771.patch
*预审员:* Alex Miller