From: "Simon Kröger" Date: 2007-09-18T05:05:04+09:00 Subject: Re: group array elements in groups of two William James wrote: > [...] > Nirvana at last! I won a round of golf with > Matz! > > YM: new=arr.to_enum(:each_slice, 2).to_a > WJ: new=arr.enum_slice(2).to_a SK: new=*arr.enum_slice(2) cheers Simon