From: "H.Yamamoto" Date: 2004-07-11T23:08:14+09:00 Subject: Re: A little algorithmic help requested... George Ogata wrote: (2004/07/11 19:37) >a.each_index{|i|a[i..j=i+2]==[x=a[i],x+1,x+2]and(0while a[j]+1==a[j+=1];a[i..j-=1]=a[i]..a[j])} Amazing.