Project

General

Profile

Actions

Feature #2321

closed

[PATCH] Array Module sum and mean features

Added by danielc192 (Daniel Cohen) about 15 years ago. Updated over 13 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:26470]

Description

=begin
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
=end


Files

add_array_sum_and_mean_with_u.diff (1.68 KB) add_array_sum_and_mean_with_u.diff Patch to add sum and mean features danielc192 (Daniel Cohen), 11/01/2009 10:52 PM

Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #2322: [PATCH] Add standard deviation function to Math ModuleRejectedmrkn (Kenta Murata)11/02/2009Actions
Actions #1

Updated by mame (Yusuke Endoh) over 14 years ago

  • Status changed from Open to Rejected

=begin
Hi,

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.

This suggestion was discussed on the thread from [ruby-core:26463],
and was rejected by matz [ruby-core:26481].

So I close this ticket.

--
Yusuke Endoh
=end

Actions

Also available in: Atom PDF

Like0
Like0