Class Interval

Represents an immutable half-open interval.

PS2 instructions: do NOT change this class.

Constructors

Properties

Methods

Constructors

  • Make an interval [start, end).

    Parameters

    • start: bigint

      low end of the interval, inclusive

    • end: bigint

      high end of the interval, exclusive, must be greater than start

    Returns Interval

Properties

end: bigint

high end of the interval, exclusive, must be greater than start

start: bigint

low end of the interval, inclusive

Methods

  • Returns string