这是我的函数参数声明:
(defn insert!
[db mode {:keys [id paths name engage cost failpage redirect priority]}]
...fn body...
来自 repl 的测试调用:
(insert! (:db system) :update {:id 1 :paths [] :name "blah" :engage 2
:cost 3 :failpage "hi" :redirect "meta" :priority 9})
这失败并出现错误:
ArityException Wrong number of args (2) passed to: campaign$insert-BANG-$fn
我无法弄清楚这一点;看来我的调用与函数声明完全匹配。我真的错过了什么愚蠢的东西吗?