General

Profile

Voileexperiments (Library Voile)

  • Login: Voileexperiments
  • Registered on: 08/23/2022
  • Last sign in: 08/23/2022

Issues

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

Activity

08/23/2022

06:44 AM Ruby Bug #18971: Enumerator::Lazy.take(0) leaks first element into next operation
You're right. I just tested again and apparently even 3.1.2p20 has this issue. Voileexperiments (Library Voile)
03:52 AM Ruby Bug #18971: Enumerator::Lazy.take(0) leaks first element into next operation
Upon more testing apparently this has been fixed in `3.0.2p107 (2021-07-07 revision 0db68f0233)`.
However I can't find a commit between p0 and p107 related to this change.
Voileexperiments (Library Voile)
03:05 AM Ruby Bug #18971 (Closed): Enumerator::Lazy.take(0) leaks first element into next operation
These results with lazy enumerators are as expected:
``` ruby
(2..10).take(0).to_a # => []
(2..10).take(0).map(:&itself).to_a # => []
(2..10).lazy.take(0).to_a # => []
```
However, once another operation is added after `take(0)...
Voileexperiments (Library Voile)

Also available in: Atom