Project

General

Profile

Actions

Bug #15949

closed

Enumerator::Lazy should support filter_map

Added by shugo (Shugo Maeda) over 4 years ago. Updated over 4 years ago.

Status:
Closed
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
Actions #1

Updated by shugo (Shugo Maeda) over 4 years ago

  • Status changed from Open to Closed

Applied in changeset git|702cf3ec9051914c8ef5a353580e0e74f7ec7005.


Enumerator::Lazy should support filter_map

Fixes [Bug #15949]

Actions

Also available in: Atom PDF

Like0
Like0