Interface IExtremaEnumerable<T>
Exposes the enumerator, which supports iteration over a sequence of some extremum property (maximum or minimum) of a specified type.
public interface IExtremaEnumerable<out T> : IEnumerable<T>, IEnumerable
Type Parameters
TThe type of objects to enumerate.
- Inherited Members
- Extension Methods
Methods
Take(int)
Returns a specified number of contiguous elements from the start of the sequence.
IEnumerable<out T> Take(int count)
Parameters
countintThe number of elements to return.
Returns
- IEnumerable<T>
An IEnumerable<T> that contains the specified number of elements from the start of the input sequence.
TakeLast(int)
Returns a specified number of contiguous elements at the end of the sequence.
IEnumerable<out T> TakeLast(int count)
Parameters
countintThe number of elements to return.
Returns
- IEnumerable<T>
An IEnumerable<T> that contains the specified number of elements at the end of the input sequence.