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 | 33c88c943b9832154d1da8f8b21c33a8fc59fc0a (patch) | |
tree | 988295914fd4e93cf415ec614a9f0a9923e71299 /test/psych/test_yaml.rb | |
parent | b2545b033da67193211b0e3073cc928eab1d4428 (diff) | |
download | ruby-33c88c943b9832154d1da8f8b21c33a8fc59fc0a.tar.gz |
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/psych/test_yaml.rb')
0 files changed, 0 insertions, 0 deletions