Project

General

Profile

Actions

Bug #17889

closed

Enumerator::Lazy#with_index should return size

Added by bjfish (Brandon Fish) over 3 years ago. Updated over 3 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:104058]

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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0