class PyRange

Included Modules

Defined in:

py2cr/range.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Enumerable(Int32)

py_all? py_all?, py_any? py_any?, py_each(&block : T -> _) py_each

Constructor Detail

def self.new(start : Int32, stop : Int32, step : Int32 = 1) #

[View source]

Class Method Detail

def self.range(start : Int32, stop : Int32, step : Int32 = 1) #

Two/three argument form


[View source]
def self.range(stop : Int32) #

One-argument form (stop-value)


[View source]

Instance Method Detail

def next #
Description copied from module Iterator(Int32)

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


[View source]