diff options
-rw-r--r-- | NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |