class Crinja::Function::RangeIterator(B, N)

Included Modules

Defined in:

lib/function/range.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(range : Range(B, B), step, current : B = range.begin, reached_end : Bool = false) #

[View source]

Instance Method Detail

def next #
Description copied from module Iterator(B)

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


[View source]
def rewind #

[View source]