add non-init reduce case to traverse

This commit is contained in:
Nathan Marz 2016-06-09 17:21:11 -04:00
parent 02a4bf09ca
commit e7aae0cb0f

View file

@ -653,7 +653,9 @@
))
(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]
(let [cell (mutable-cell start)]
(compiled-traverse*