ruby-changes:4524
From: ko1@a...
Date: Mon, 14 Apr 2008 20:08:49 +0900 (JST)
Subject: [ruby-changes:4524] knu - Ruby:r16017 (ruby_1_8): Add notes about {Array,Enumerable}#{map,collect}, which still return
knu 2008-04-14 20:08:36 +0900 (Mon, 14 Apr 2008) New Revision: 16017 Modified files: branches/ruby_1_8/NEWS Log: Add notes about {Array,Enumerable}#{map,collect}, which still return an array for compatibility. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/NEWS?r1=16017&r2=16016&diff_format=u Index: ruby_1_8/NEWS =================================================================== --- ruby_1_8/NEWS (revision 16016) +++ ruby_1_8/NEWS (revision 16017) @@ -43,6 +43,9 @@ Return an enumerator if no block is given. + Note that #map and #collect still return an array unlike Ruby 1.9 + to keep compatibility. + * Array#pop * Array#shift @@ -108,6 +111,9 @@ Return an enumerator if no block is given. + Note that #map and #collect still return an array unlike Ruby 1.9 + to keep compatibility. + * Enumerable#inject Accepts a binary operator instead of a block. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/