Sequence. Defines an ascending or descending sequence of big integers implemented as an iterable.

Implements

Constructors

  • Constructor.

    Parameters

    • startValue: number | bigint

      Start value.

    • count: number

      Count of values. If count is zero or positive, iteration ascends from start value, otherwise it descends from start value.

    Returns Sequence

Accessors

  • get startValue(): bigint
  • Get the start value (inclusive).

    Returns bigint

  • get endValue(): bigint
  • Get the end value (exclusive).

    Returns bigint

  • get count(): number
  • Get the count of values.

    Returns number

  • get minimumValue(): bigint
  • Get the minimum value (inclusive).

    Returns bigint

  • get maximumValue(): bigint
  • Get the maximum value (inclusive).

    Returns bigint

Methods

  • Iterable implementation.

    Returns Generator<bigint>

    Next value in sequence.