On Wed, Jun 11, 2008 at 7:06 PM, Jason Lillywhite
<jason.lillywhite / gmail.com> 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