TEnumerable.Repeated<T> Method
Definition
Generates a sequence that contains one repeated value.
Delphi
class function Repeated<T>(const element: T; count: Integer): IEnumerable<T>
Type Parameters
- T
The type of the value to be repeated in the result sequence.
Parameters
- element
- T
The value to be repeated.
- count
- Integer
The number of times to repeat the value in the generated sequence.
Returns
IEnumerable<T>
A sequence that contains a repeated value.
Exceptions
count is less than 0.