1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core
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
..
argf
array Update to ruby/spec@9be7c7e 2018-08-03 16:19:40 +00:00
basicobject
binding Update to ruby/spec@9be7c7e 2018-08-03 16:19:40 +00:00
builtin_constants
class Update to ruby/spec@a454137 2018-06-27 12:30:05 +00:00
comparable
complex
dir
encoding
enumerable Update to ruby/spec@9be7c7e 2018-08-03 16:19:40 +00:00
enumerator
env Update to ruby/spec@a454137 2018-06-27 12:30:05 +00:00
exception Update to ruby/spec@a454137 2018-06-27 12:30:05 +00:00
false
fiber
file
filetest
float Update to ruby/spec@a454137 2018-06-27 12:30:05 +00:00
gc
hash Update to ruby/spec@a454137 2018-06-27 12:30:05 +00:00
integer Update to ruby/spec@a454137 2018-06-27 12:30:05 +00:00
io Update to ruby/spec@9be7c7e 2018-08-03 16:19:40 +00:00
kernel Update to ruby/spec@9be7c7e 2018-08-03 16:19:40 +00:00
main
marshal
matchdata
math
method
module Update to ruby/spec@9be7c7e 2018-08-03 16:19:40 +00:00
mutex
nil
numeric enumerator.c: Introduce Enumerator::ArithmeticSequence 2018-08-06 09:08:28 +00:00
objectspace
proc
process process.c (rb_f_exec): pause MJIT before replacing process 2018-07-07 23:59:23 +00:00
random
range enumerator.c: Introduce Enumerator::ArithmeticSequence 2018-08-06 09:08:28 +00:00
rational
regexp
signal Update to ruby/spec@9be7c7e 2018-08-03 16:19:40 +00:00
string Update to ruby/spec@9be7c7e 2018-08-03 16:19:40 +00:00
struct
symbol
systemexit Update to ruby/spec@a454137 2018-06-27 12:30:05 +00:00
thread Update to ruby/spec@9be7c7e 2018-08-03 16:19:40 +00:00
threadgroup
time Update to ruby/spec@9be7c7e 2018-08-03 16:19:40 +00:00
tracepoint Update to ruby/spec@a454137 2018-06-27 12:30:05 +00:00
true
unboundmethod
warning