From: Roger Pack Date: 2009-11-14T02:30:13+09:00 Subject: Re: RCR enumerable extra into core > This reminds me of the early 1.9.0 thing, where you could do: > > array = [1,2,3,4] > enum = array.enum_for(:map, &lambda {|x| x * x }) > > enum.next # 1 > enum.next # 4 It is surprising that currently it appears to *ignore* the given block. >> b = File.open('file', 'r').lines{|line| lines * 2} >> b.next => "xx\n" >>> b.next => "xx\n" Is this expected? -r -- Posted via http://www.ruby-forum.com/.