Project

General

Profile

Bug #15949

Enumerator::Lazy should support filter_map

Added by shugo (Shugo Maeda) 5 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.7.0dev (2019-06-21T06:29:29Z trunk 4149fd6078) [x86_64-linux]
[ruby-core:93299]

Description

filter_map has been added to Enumerable, but it's not supported by Enumerator::Lazy.

p (1..).lazy.filter_map { |i| i.even? && i.to_s }.first # never return

Associated revisions

Revision 702cf3ec
Added by shugo (Shugo Maeda) 5 months ago

Enumerator::Lazy should support filter_map

Fixes [Bug #15949]

History

#1

Updated by shugo (Shugo Maeda) 5 months ago

  • Status changed from Open to Closed

Applied in changeset git|702cf3ec9051914c8ef5a353580e0e74f7ec7005.


Enumerator::Lazy should support filter_map

Fixes [Bug #15949]

Also available in: Atom PDF