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:
parent
f2dc726691
commit
15b2474e19
1 changed files with 6 additions and 0 deletions
6
NEWS
6
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue