RangeEnd function
Fully qualified name: Std.Range.RangeEnd
function RangeEnd(r : Range) : Int
Summary
Returns the defined end value of the given range, which is not necessarily the last element in the sequence.
Input
r
Input range.
Output
The defined end value of the given range.
Remarks
A range expression's first element is start
,
its second element is start+step
, third element is start+step+step
, etc.,
until end
is passed.
Note that the defined end value of a range can differ from the last element in the sequence specified by the range; for example, in a range 0 .. 2 .. 5 the last element is 4 but the end value is 5.