mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Adds "endless range" to NEWS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d55452cb37
commit
e5de886863
1 changed files with 7 additions and 0 deletions
7
NEWS
7
NEWS
|
@ -22,6 +22,13 @@ with all sufficient information, see the ChangeLog file or Redmine
|
|||
|
||||
* constant names may start with a non-ASCII capital letter. [Feature #13770]
|
||||
|
||||
* An endless range is introduced. You can write a range that has no end, like `(0..)`.
|
||||
The following shows typical use cases. [Feature #12912]
|
||||
|
||||
ary[1..] # identical to ary[1..-1]
|
||||
(1..).each {|index| ... } # infinite loop from index 1
|
||||
ary.zip(1..) {|elem, index| ... } # ary.each.with_index(1) { }
|
||||
|
||||
=== Core classes updates (outstanding ones only)
|
||||
|
||||
* Array
|
||||
|
|
Loading…
Add table
Reference in a new issue