From: Daniel Cohen Date: 2009-11-01T22:52:24+09:00 Subject: [ruby-core:26470] [Feature #2321] [PATCH] Array Module sum and mean features Feature #2321: [PATCH] Array Module sum and mean features http://redmine.ruby-lang.org/issues/show/2321 Author: Daniel Cohen Status: Open, Priority: Normal Category: core I have created a new patch for the Array Module of Ruby. The patch adds two complementary features: A sum function, that sums the elements in an array if they are numbers; and a mean (or average) function that finds the mean of the elements in the the array using the sum function. Attached is a patch to implement these features. I apologize in advance if this has already been proposed. Sincerely, Daniel Cohen ---------------------------------------- http://redmine.ruby-lang.org