From: "kachick (Kenichi Kamiya)" Date: 2013-08-09T01:51:41+09:00 Subject: [ruby-core:56460] [ruby-trunk - Bug #8735] Enumerator::Lazy#zip behaves differently from Enumerable#zip when yield with non-single argument Issue #8735 has been updated by kachick (Kenichi Kamiya). Thank you! ---------------------------------------- Bug #8735: Enumerator::Lazy#zip behaves differently from Enumerable#zip when yield with non-single argument https://bugs.ruby-lang.org/issues/8735#change-41000 Author: kachick (Kenichi Kamiya) Status: Closed Priority: Normal Assignee: Category: Target version: ruby -v: ruby -v ruby 2.1.0dev (2013-08-05 trunk 42385) [i686-linux] Backport: 1.9.3: DONTNEED, 2.0.0: REQUIRED =begin Is this intended? obj = Object.new def obj.each yield yield 1, 2 end obj.to_enum.zip(obj.to_enum) #=> [[nil, nil], # [[1, 2], [1, 2]]] obj.to_enum.lazy.zip(obj.to_enum).force #=> [[false, nil], # [1, [1, 2]]] =end -- http://bugs.ruby-lang.org/