Range
-
construct(start,end)Returns a range whose start is
startand end isend. ThrowsTypeErrorifstartorendis not anIntExample:
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