diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-19 15:18:50 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-19 15:18:50 +0000 |
commit | 7f95eed19e22cb9a4867819355fe4ab99f85fd16 (patch) | |
tree | 988295914fd4e93cf415ec614a9f0a9923e71299 /test/ruby/test_file.rb | |
parent | 3a5d1e4b775deee8c8731a97048b752a33b35922 (diff) |
Introduce endless range [Feature#12912]
Typical usages:
```
p ary[1..] # drop the first element; identical to ary[1..-1]
(1..).each {|n|...} # iterate forever from 1; identical to 1.step{...}
```
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_file.rb')
0 files changed, 0 insertions, 0 deletions