diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-14 11:08:36 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-14 11:08:36 +0000 |
commit | 15b2474e19b5c0f4482ff9322c60bb8a79101e2a (patch) | |
tree | ba92922067c04ad900e0315f4ad06c76cec63efa | |
parent | f2dc726691434553a8f4914fc9e51b53e0eeed6f (diff) |
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
-rw-r--r-- | NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. |