IEnumerable<T>.Take Method

Definition

Returns the specified number of contiguous elements from the start of the sequence.

Delphi
function Take(count: Integer): IEnumerable<T>

Parameters

count
Integer

The number of elements to return.

Returns

IEnumerable<T>

A sequence that contains the specified number of elements from the start of the input sequence.

Remarks

If count is not a positive number, the sequence is not enumerated and an empty sequence is returned.