Function range

  • Returns a RangeIterator for all numbers starting at the start index and one step before the stop index.

    Parameters

    • stop: number

      The stop index (exclusive).

    Returns RangeIterator

    This functionally behaves the same as Python 3's range builtin, with the exception of here: range(1, 0) == [1], whereas in Python, it returns an empty iterator: [].

  • Parameters

    • start: number
    • stop: number

    Returns RangeIterator

  • Parameters

    • start: number
    • stop: number
    • step: number

    Returns RangeIterator