From: "cvss (Kirill Vechera)" Date: 2021-12-06T12:57:33+00:00 Subject: [ruby-core:106510] [Ruby master Bug#18390] Enumerator::Lazy#find returns invalid value Issue #18390 has been reported by cvss (Kirill Vechera). ---------------------------------------- Bug #18390: Enumerator::Lazy#find returns invalid value https://bugs.ruby-lang.org/issues/18390 * Author: cvss (Kirill Vechera) * Status: Open * Priority: Normal * ruby -v: 3.0.2 * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- There is a regression bug with #find ```ruby # RUBY_VERSION 3.0.2 %w(abcde fg hijk).lazy.map(&:size).find(&:even?) # => nil, expected 2 %w(abcde fg hijk).map(&:size).find(&:even?) # => 2 # RUBY_VERSION 2.4.1 %w(abcde fg hijk).lazy.map(&:size).find(&:even?) # => 2 %w(abcde fg hijk).map(&:size).find(&:even?) # => 2 ``` -- https://bugs.ruby-lang.org/ Unsubscribe: