From: Martin DeMello Date: 2004-04-25T14:44:03+09:00 Subject: Re: RCR: Accumulating block nobu.nokada@softhome.net wrote: > Martin DeMello wrote in [ruby-talk:98258]: > > > > a = (1..10).step(2) [|i| ...] > > I don't feel it so essential. > > $ ruby -renumerator -e 'p (1..10).enum_for(:step, 2).to_a > [1, 3, 5, 7, 9] Ah yes, I forgot about enum_for. martin