From: Gene Tani Date: 2005-11-25T22:12:27+09:00 Subject: Re: Faster way to pick the every other array member? Christophe Poucet wrote: > To be honest, I think that the hopscotching technique as well as: > > > f = true > > fields = fields.select{f=!f} > > are rather dirty hacks. They are short but they do not clearly convey > the meaning of the program. There's probably dozens of ways to do it: require 'enumerator' (1..10).each_slice(3) {|slc| p slc[0]}