From: gabriele renzi Date: 2004-03-13T21:34:34+09:00 Subject: Re: iterating with multiple values il Fri, 12 Mar 2004 21:25:35 +0100, Christoph ha scritto:: > >You can also use the enumerator extension. >The output differs from yours but possibly >satisfies your ultimate desires anyway > > > >require 'enumerator' > >(1..9).each_cons(3) do |a,b,c| > print a,b,c,"\n" >end > >--- >123 >234 >345 >456 >567 >678 >789 >--- > >/Christoph wow, that's exactly what I was looking for, I did'nt know enumerator did this. Thank you and thanks to Gavin, Carlos and Mark.