The range type represents a series of integers, for example 0..3
, and Min..Max
.
The start of the range is the first value in the expression, for example 0
, and the end of the range is the value following ..
in the expression, for example 3
. The range contains all the integers between, and including, the start and end values. For example, the range expression 0..3
contains the numbers 0
, 1
, 2
, and 3
.
Range expressions only support int
values, and can only be used in for
, sync
, race
, and rush
expressions.
For example:
for (Index := 0..5):
Print("{Index}")