fix reader conditional, close #8

This commit is contained in:
Christophe Grand 2017-01-09 16:41:00 +01:00
parent 6047563033
commit 320668e7b5

View file

@ -9,7 +9,7 @@
n is the number of calls to rf before it returns a reduced.
accs is a collection of successive return values for rf."
([xform n coll]
(trial xform n (repeatedly #(#?(:clj Object. :clj js/Object.))) coll))
(trial xform n (repeatedly #(#?(:clj Object. :cljs js/Object.))) coll))
([xform n accs coll]
(let [vaccs (volatile! accs)
vstate (volatile! {:n n :acc (first @vaccs) :state :init})