Range

Module

Implements a ‘range’ call.

range

range(end: Int) -> _ZeroStartingRange

Construct a [0; end) Range.

Args:

  • end (Int): The end of the range.

Returns:

The constructed range.

range(length: object) -> _ZeroStartingRange

Construct a [0; length) Range.

Args:

  • length (object): The end of the range.

Returns:

The constructed range.

range(start: Int, end: Int) -> _SequentialRange

Construct a [start; end) Range.

Args:

  • start (Int): The start of the range.
  • end (Int): The end of the range.

Returns:

The constructed range.

range(start: object, end: object) -> _SequentialRange

Construct a [start; end) Range.

Args:

  • start (object): The start of the range.
  • end (object): The end of the range.

Returns:

The constructed range.

range(start: Int, end: Int, step: Int) -> _StridedRange

Construct a [start; end) Range with a given step.

Args:

  • start (Int): The start of the range.
  • end (Int): The end of the range.
  • step (Int): The step for the range.

Returns:

The constructed range.

range(start: object, end: object, step: object) -> _StridedRange

Construct a [start; end) Range with a given step.

Args:

  • start (object): The start of the range.
  • end (object): The end of the range.
  • step (object): The step for the range.

Returns:

The constructed range.