From: Avdi Grimm Date: 2008-06-12T08:10:56+09:00 Subject: Re: subtracting arrays On Wed, Jun 11, 2008 at 7:06 PM, Jason Lillywhite wrote: > while i < 3 do > c << a[i] - b[i] > i += 1 > end BTW, this kind of loop is what Enumerable#each_with_index is for. -- Avdi Home: http://avdi.org Developer Blog: http://avdi.org/devblog/ Twitter: http://twitter.com/avdi Journal: http://avdi.livejournal.com