Range

  • construct(start,end)

    Returns a range whose start is start and end is end. Throws TypeError if start or end is not an Int

    Example: new Range(1,2) //1..2

  • start()

    Returns the start of the range

    Example (1..2).start() //1

  • end()

    Returns the end of the range

    Example (1..2).end() //2