我正面临一个与Clojure有关的奇怪问题。我是初学者,毫无疑问,我忘了什么。
代码:
(defn get-orders-of-this-interval
[orders interval]
(->> orders
(pig/filter
(fn [x] (time/within? interval (fmt/parse custom-formatter (subs (get-in x [:order-date]) 0 10)))))
))
代码:
CompilerException java.lang.RuntimeException: Unable to resolve symbol: interval in this context, compiling:(/tmp/form-init5349460027011396554.clj:60:16
有什么想法吗?
谢谢:)