From: "nobu (Nobuyoshi Nakada)" Date: 2013-08-09T00:10:27+09:00 Subject: [ruby-core:56455] [ruby-trunk - Bug #8735] Enumerator::Lazy#zip behaves differently from Enumerable#zip when yield with non-single argument Issue #8735 has been updated by nobu (Nobuyoshi Nakada). Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN to 1.9.3: DONTNEED, 2.0.0: REQUIRED ---------------------------------------- Bug #8735: Enumerator::Lazy#zip behaves differently from Enumerable#zip when yield with non-single argument https://bugs.ruby-lang.org/issues/8735#change-40994 Author: kachick (Kenichi Kamiya) Status: Open 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/