[前][次][番号順一覧][スレッド一覧]

ruby-changes:42975

From: mrkn <ko1@a...>
Date: Wed, 18 May 2016 12:21:56 +0900 (JST)
Subject: [ruby-changes:42975] mrkn:r55049 (trunk): Describe Enumerable#sum in NEWS [ci skip]

mrkn	2016-05-18 12:21:53 +0900 (Wed, 18 May 2016)

  New Revision: 55049

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55049

  Log:
    Describe Enumerable#sum in NEWS [ci skip]

  Modified files:
    trunk/NEWS
Index: NEWS
===================================================================
--- NEWS	(revision 55048)
+++ NEWS	(revision 55049)
@@ -27,11 +27,17 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/NEWS#L27
     now ignored.  You should also redefine Array#max.
 
   * Array#sum  [Feature #12217]
+    This is different from Enumerable#sum in that Array#sum doesn't depend on
+    the definition of each method.
 
 * Dir
 
   * Dir.empty?.  [Feature #10121]
 
+* Enumerable
+
+  * Enumerable#sum  [Feature #12217]
+
 * File
 
   * File.empty?.  [Feature #9969]
@@ -79,7 +85,7 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/NEWS#L85
 
 === Compatibility issues (excluding feature bug fixes)
 
-* Array#sum is implemented.  [Feature #12217]
+* Array#sum and Enumerable#sum are implemented.  [Feature #12217]
   Ruby itself has no compatibility problem because Ruby didn't have sum method
   for arrays before Ruby 2.4.
   However many third party gems, activesupport, facets, simple_stats, etc,

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]