wip
This commit is contained in:
parent
87d83bf95f
commit
76f96ab5b1
1 changed files with 112 additions and 109 deletions
|
|
@ -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))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue