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