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
Actions
Like0
Like0