aaronkison (Aaron Kison)
- Login: aaronkison
- Registered on: 02/16/2025
- Last sign in: 02/17/2025
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 1 | 0 | 1 |
Activity
02/17/2025
-
12:26 AM Ruby Bug #21142 (Open): Lazy enumerator `.each_with_index` ignores `.take(0)` before it
- Minimum code to produce problem:
```
class Numbers; def each; 100.times { yield _1 }; end; include Enumerable; end
Numbers.new.lazy.take(0).each_with_index.map { _1 }.to_a
```
Output (at ruby 3.2.7, and 3.3.0):
```
[0, 1, ...,...