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]}