Skip to content
class · Ruby 4.0

Enumerator::ArithmeticSequence

< Enumerator 13 instance methods

Enumerator::ArithmeticSequence is a subclass of Enumerator, that is a representation of sequences of numbers with common difference. Instances of this class can be generated by the Range#step and Numeric#step methods.

The class can be used for slicing Array (see Array#slice) or custom collections.

Instance methods 13