For reference, here's the
ticket: http://dev.clojure.org/jira/browse/CLJ-1185
And the
commit:
https://github.com/clojure/clojure/commit/b45b067f56c78b8128f57913e662d9638ee480c5
On Friday, November 28, 2014 11:19:41 AM UTC-5, Nicola Mometto wrote:
>
>
> This has already been fixed, and reductio
This has already been fixed, and reductions will support reduced in
1.7.0.
In the meantime you can use 1.7.0-alpha4.
Nicola
myguidingstar writes:
>
>
> (reduce (fn [acc x]
> (if (> acc 10)
> (reduced acc)
> (+ acc x)))
> 0
> (range 100))
> ;; =>