From: Levin Alexander Date: 2005-09-03T07:40:56+09:00 Subject: Re: Idiomatic conversion of yielding block to array On 9/3/05, Simon Kr�ger wrote: > food for thoughts... require 'generator' s1 = %w{this is the first line}.join("\n") s2 = %w{this is the second line}.join("\n") compare = SyncEnumerator.new(s1.to_enum(:each_line), s2.to_enum(:each_line)) compare.each { |a,b| # ... } -Levin