add non-init reduce case to traverse
This commit is contained in:
parent
02a4bf09ca
commit
e7aae0cb0f
1 changed files with 3 additions and 1 deletions
|
|
@ -653,7 +653,9 @@
|
||||||
))
|
))
|
||||||
|
|
||||||
(defn do-compiled-traverse [apath structure]
|
(defn do-compiled-traverse [apath structure]
|
||||||
(reify clojure.lang.IReduceInit
|
(reify clojure.lang.IReduce
|
||||||
|
(reduce [this afn]
|
||||||
|
(.reduce this afn (afn)))
|
||||||
(reduce [this afn start]
|
(reduce [this afn start]
|
||||||
(let [cell (mutable-cell start)]
|
(let [cell (mutable-cell start)]
|
||||||
(compiled-traverse*
|
(compiled-traverse*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue