From: Phrogz Date: 2007-12-14T02:05:01+09:00 Subject: Re: While statements in ruby On Dec 13, 8:21 am, Ken Bloom wrote: > On Tue, 11 Dec 2007 23:00:52 +0100, Robert Klemme wrote: > > I am amazed nobody mentioned each_slice: with "enumerator" you can do: [...] > Because someone did mention #each_cons > In reality, you're right and they (and most other people, myself > included) didn't read closely enough to see that the loop does > i+=2, not i+=1. Exactly why I didn't mention it. :) Glad Robert was there to pick up the slack.