TEnumerable.Range Method

Definition

Generates a sequence of integral numbers within a specified range.

Delphi
class function Range(start: Integer; count: Integer): IReadOnlyList<Integer>

Parameters

start
Integer

The value of the first integer in the sequence.

count
Integer

The number of sequential integers to generate.

Returns

IReadOnlyList<Integer>

A read-only list that contains a range of sequential integral numbers.

Exceptions

count is less than 0.

-or-

start + count -1 is larger than MaxInt .