This commit is contained in:
Michiel Borkent 2022-10-02 18:41:37 +02:00
parent 87d83bf95f
commit 76f96ab5b1

View file

@ -329,8 +329,11 @@
(defn res [form] (defn res [form]
(cond (cond
(keyword? form) form (keyword? form) form
(symbol? form) (c/or (symbol? form) (cond
(-> form sci-resolve ->sym) form) (= 'fn form) 'clojure.core/fn ;; make tests pass, fn is not a macro in SCI
(= 'not form) 'clojure.core/not ;; make tests pass, not is not a macro in SCI
:else (c/or
(-> form sci-resolve ->sym) form))
(sequential? form) (walk/postwalk #(if (symbol? %) (res %) %) (unfn form)) (sequential? form) (walk/postwalk #(if (symbol? %) (res %) %) (unfn form))
:else form)) :else form))