Closed kamituel closed 6 years ago
For completness:
;; Breaks too.
(prn (transit/write transit-writer (doall (sequence (map transform-map) data))))
;; Works fine.
(prn (transit/write transit-writer (vec (sequence (map transform-map) data))))
;; Works fine.
(prn (transit/write transit-writer (apply list (sequence (map transform-map) data))))
I can't replicate this with the latest ClojureScript
When using
sequence
with transducers,transit/write
failes with an exception.Consider:
Regular map (p1) will print just fine, however, p2 fails with an exception:
Because of that, obviously p3 never gets printed.
Latest transit: 0.8.239. I'm able to reproduce it on ClojureScript 1.9.293 (latest) as well as 1.9.76 (haven't tried other versions).