From: Robert Dober Date: 2008-06-12T22:23:48+09:00 Subject: Re: Array inject function problem On Thu, Jun 12, 2008 at 1:38 PM, Rick DeNatale wrote: >> [1,3,5].inject([0]){| a, e| a<< a.last + e}[1..-1] > > > Which I had in my original offering before Sebastien trimmed it. I only steal from the best of course!!!! Sorry Rick must have lost it somewhere :( Cheers Robert