aboutsummaryrefslogtreecommitdiffstats
path: root/README.ja.md
diff options
context:
space:
mode:
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-06 09:08:28 +0000
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-06 09:08:28 +0000
commitc99a06cf171024f9a5fe1b2bf7dc119383407b12 (patch)
treec315767e47c948fc9404d27beff43ff06b2a5199 /README.ja.md
parentdc62cd45a568b722f7511ae2afe56b8672a9c920 (diff)
downloadruby-c99a06cf171024f9a5fe1b2bf7dc119383407b12.tar.gz
enumerator.c: Introduce Enumerator::ArithmeticSequence
This commit introduces new core class Enumerator::ArithmeticSequence. Enumerator::ArithmeticSequence is a subclass of Enumerator, and represents a number generator of an arithmetic sequence. After this commit, Numeric#step and Range#step without blocks returned an ArithmeticSequence object instead of an Enumerator. This class introduces the following incompatibilities: - You can create a zero-step ArithmeticSequence, and its size is not ArgumentError, but Infinity. - You can create a negative-step ArithmeticSequence from a range. [ruby-core:82816] [Feature #13904] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.ja.md')
0 files changed, 0 insertions, 0 deletions