Actions
Bug #17889
closedEnumerator::Lazy#with_index should return size
Bug #17889:
Enumerator::Lazy#with_index should return size
Description
The following example shows #size
returns nil
when the size
was provided to new
as 3
.
Example
p Enumerator::Lazy.new([1, 2, 3], 3){|y, v| y << v}.with_index.size
Expected Result
3
Actual Result
nil
Actions