IEnumerable<T>.SkipLast Method
Definition
Omits the specified number of elements at the end of the sequence.
Delphi
function SkipLast(count: Integer): IEnumerable<T>
Parameters
- count
- Integer
The number of elements to omit from the end of the sequence.
Returns
IEnumerable<T>
A sequence that contains the elements minus count elements from the end of the input sequence.
Remarks
If count is not a positive number, this method returns the
input sequence.