aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-19 15:23:34 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-19 15:23:34 +0000
commite5de8868631b463f54e7ebeb196a815c3ca7bf14 (patch)
tree4d87a774bb78495f61a869d782aa792011493ea2
parentd55452cb37e41ac7a8642d375cfb89eee3443241 (diff)
downloadruby-e5de8868631b463f54e7ebeb196a815c3ca7bf14.tar.gz
Adds "endless range" to NEWS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--NEWS7
1 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 5a8f4e4286..f8131b2988 100644
--- a/NEWS
+++ b/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