From: "Simon Kröger" Date: 2005-09-03T06:56:11+09:00 Subject: Re: Idiomatic conversion of yielding block to array Levin Alexander wrote: > David Brady wrote: > > >> cal_lines = []; cal.to_html.each_line {|line| cal_lines << line } > > > require 'enumerator' > cal_lines = cal.to_html.to_enum(:each_line).to_a > > -Levin You don't need the to_a but still zip will create 3 arrays. interesting... Simon