From: Yukihiro Matsumoto Date: 2009-11-02T16:06:01+09:00 Subject: [ruby-core:26481] Re: New Features for the Array Module Hi, In message "Re: [ruby-core:26471] Re: New Features for the Array Module" on Sun, 1 Nov 2009 22:56:14 +0900, Kornelius Kalnbach writes: |So: |+1 for Array#sum if it is defined as #inject(&:+) |-1 on type-limited Array#sum and Array#mean -1 for #sum to calculate not based on numeric addition. Use inject(&:+) otherwise. matz.