Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

Strange behavior with Seq range, reverse #148

Open
Methuselah96 opened this issue Oct 17, 2020 · 0 comments
Open

Strange behavior with Seq range, reverse #148

Methuselah96 opened this issue Oct 17, 2020 · 0 comments

Comments

@Methuselah96
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant