1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
knu 2008-04-14 11:08:36 +00:00
parent f2dc726691
commit 15b2474e19

6
NEWS
View file

@ -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.