class

Steppable::StepIterator(T, L, B)

Inherits Iterator / Enumerable / Reference / Object

Constructors

new(current : T, limit : L, step : B, exclusive : Bool)
Source

Instance methods

next

Returns the next element in this iterator, or Iterator::Stop::INSTANCE if there are no more elements.

Source
sum(initial)

Overrides Enumerable#sum to use more performant implementation on integer ranges.

Source