From 15b2474e19b5c0f4482ff9322c60bb8a79101e2a Mon Sep 17 00:00:00 2001 From: knu Date: Mon, 14 Apr 2008 11:08:36 +0000 Subject: Add notes about {Array,Enumerable}#{map,collect}, which still return an array for compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- NEWS | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 35180a00a4..68266322f6 100644 --- a/NEWS +++ b/NEWS @@ -43,6 +43,9 @@ with all sufficient information, see the ChangeLog file. 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 @@ with all sufficient information, see the ChangeLog file. 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. -- cgit v1.2.3