Range
-
construct(start,end)
Returns a range whose start is
start
and end isend
. ThrowsTypeError
ifstart
orend
is not anInt
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