File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -8940,8 +8940,8 @@ reduces them without incurring seq initialization"
8940
8940
(-seq [_] (seq (sequence xform coll)))
8941
8941
8942
8942
IReduce
8943
- (-reduce [_ f] (transduce xform f coll))
8944
- (-reduce [_ f init] (transduce xform f init coll))
8943
+ (-reduce [_ f] (transduce xform ( completing f) coll))
8944
+ (-reduce [_ f init] (transduce xform ( completing f) init coll))
8945
8945
8946
8946
IPrintWithWriter
8947
8947
(-pr-writer [coll writer opts]
Original file line number Diff line number Diff line change 2814
2814
(deftest test-cljs-1225
2815
2815
(is (= (incme ) 2 )))
2816
2816
2817
+ (defn my-conj
2818
+ [acc x]
2819
+ (conj acc x))
2820
+
2821
+ (deftest test-cljs-1209
2822
+ (is (= (reduce my-conj [] (eduction (map identity) [1 2 3 ]))
2823
+ [1 2 3 ])))
2824
+
2817
2825
(comment
2818
2826
; ; ObjMap
2819
2827
; ; (let [ks (map (partial str "foo") (range 500))
You can’t perform that action at this time.
0 commit comments