mrkn f15069338d 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
2018-08-06 09:08:28 +00:00
..
2018-05-09 04:39:16 +00:00
2018-04-17 08:18:56 +00:00
2018-07-28 13:06:43 +00:00
2018-05-15 05:53:18 +00:00
2018-05-12 09:13:45 +00:00
2018-07-28 10:00:27 +00:00
2018-06-25 12:11:31 +00:00
2018-05-12 07:33:53 +00:00
2018-05-06 09:53:33 +00:00
2018-04-28 01:47:58 +00:00
2018-05-08 02:07:53 +00:00
2018-06-10 03:10:13 +00:00
2018-07-26 12:47:01 +00:00
2018-06-17 15:42:35 +00:00
2018-06-12 14:36:32 +00:00
2018-07-24 07:47:01 +00:00