General

Profile

dzwdz (Kuba Prawdziwe-Nazwisko)

  • Login: dzwdz
  • Registered on: 04/19/2021
  • Last sign in: 04/19/2021

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

04/19/2021

03:22 PM Ruby Bug #17814: inconsistent Array.zip behavior
note: sorry for the weird Fiber thing in the example code, that's not related to the bug
an enumerator created with
```ruby
step = 0.step
e = Enumerator.produce { step.next }
```
would also have the same bug
dzwdz (Kuba Prawdziwe-Nazwisko)
03:04 PM Ruby Bug #17814 (Closed): inconsistent Array.zip behavior
When using `Array.zip` with an enumerator, it "eats" an additional element off the end of it. `Enumerable.zip` has the expected behavior of only taking as many elements as it needs to.
I've tested this on local ruby 2.7.2 and ruby 3.0...
dzwdz (Kuba Prawdziwe-Nazwisko)

Also available in: Atom