We're updating the issue view to help you get more done. 

Reduce produces additional final nil when used w/ eduction

Description

1 2 3 4 5 6 7 8 9 10 11 (defn my-conj [acc x] (prn acc x) (conj acc x)) (reduce my-conj [] (eduction (map identity) [1 2 3])) ;; [] 1 ;; [1] 2 ;; [1 2] 3 ;; [1 2 3] nil ;; [1 2 3 nil]

This seems to be a CLJS specific issue - the above works fine in CLJ1.7.0-beta1. On the other hand, reductions too doesn't suffer this behavior (in CLJS):

1 2 3 4 5 (reductions my-conj [] (eduction (map identity) [1 2 3])) ;; [] 1 ;; [1] 2 ;; [1 2] 3 ;; ([] [1] [1 2] [1 2 3])

Environment

None

Status

Assignee

Unassigned

Reporter

Karsten Schmidt

Labels

Approval

None

Patch

None

Fix versions

Affects versions

0.0-3269

Priority

Major