From: "David A. Black" Date: 2005-11-26T09:20:12+09:00 Subject: Re: Faster way to pick the every other array member? Hi -- On Sat, 26 Nov 2005, Jeff Wood wrote: > I'm kind of surprised that you don't get an array of values back if you call > Range#step(x) without a block. > > That would make things much easier ... > > a.values_at( (2..6).step(2) ) > > ... at least, that is what would make sense to me ... anybody else? I can see your reasoning though I tend to come down on the side of not liking iterators to create accumulator arrays unless you ask them to. It's kind of the same thing as the (much discussed) question of whether a.zip(b) with a block should also return the zipped array (as opposed to having the block be a way to avoid creating the whole array). David -- David A. Black dblack@wobblini.net