Actions
Bug #15949
closedEnumerator::Lazy should support filter_map
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.7.0dev (2019-06-21T06:29:29Z trunk 4149fd6078) [x86_64-linux]
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
Updated by shugo (Shugo Maeda) about 5 years ago
- Status changed from Open to Closed
Applied in changeset git|702cf3ec9051914c8ef5a353580e0e74f7ec7005.
Enumerator::Lazy should support filter_map
Fixes [Bug #15949]
Actions
Like0
Like0