From: Gregor Kopp Date: 2006-08-07T16:50:11+09:00 Subject: Re: inject does not inject last value Gregor Kopp schrieb: > irb(main):001:0> sum = [1,2,3,4,5].inject{|sum,e| sum+e} > => 15 > irb(main):002:0> sum > => 15 First you see the Return Value (15), but bevor assign the return value to sum sum will be 10 and not the return value of the operation itself. i cannot teach, im a dumpass english loser.