Classes | Math

Interval : Collection : Object

range of integers


An Interval is a range of integers from a starting value to an ending value by some step value.

Class Methods, end, step: 1)

Create a new Interval.

Inherited class methods

Instance Methods


.start = value

The starting value of the interval.


.end = value

The ending value of the interval.


.step = value

The step value of the interval.


Return the number of items in the interval.


Return the indexed item in the interval.


Evaluates function for each item in the interval. The function is passed two arguments, the item and an integer index.

Inherited instance methods

Undocumented instance methods