From: Avdi Grimm Date: 2008-06-12T08:09:38+09:00 Subject: Re: subtracting arrays On Wed, Jun 11, 2008 at 7:06 PM, Jason Lillywhite wrote: > I suspect there is a cleaner way to do this with inject or collect. >> a.zip(b).map do |x, y| x - y end => [0, 1, 2] -- Avdi Home: http://avdi.org Developer Blog: http://avdi.org/devblog/ Twitter: http://twitter.com/avdi Journal: http://avdi.livejournal.com