Strange behavior with Seq range, reverse
Opened this issue · 0 comments
Methuselah96 commented
From @algoshipda on Thu, 29 Aug 2019 09:02:03 GMT
What happened
Seq([1, 2, 3]).zip(Range())
.reverse()
// expected: [[3, 2], [2, 1], [1, 0]]
// actual: [[3, Infinity], [2, Infinity], [1, Infinity]]and run this code below with https://clojurescript.io/
(reverse (map vector [1 2 3] (range)))
; produce ([3 2] [2 1] [1 0])I think those codes are equivalent and Clojure's output is correct output.
Is this desired behavior?
Immutablejs Version: 4.0.0-rc.12
Copied from original issue: immutable-js#1730