Provides a countdown counter for a given count of elements at the tail of the sequence where zero always represents the last element, one represents the second-last element, two represents the third-last element and so on.
Namespace: MoreLinqMoreLinq (in MoreLinq.dll) Version: 3.0.0
Syntaxpublic static IEnumerable<TResult> CountDown<T, TResult>( this IEnumerable<T> source, int count, Func<T, Nullable<int>, TResult> resultSelector )
<ExtensionAttribute> Public Shared Function CountDown(Of T, TResult) ( source As IEnumerable(Of T), count As Integer, resultSelector As Func(Of T, Nullable(Of Integer), TResult) ) As IEnumerable(Of TResult)
public: [ExtensionAttribute] generic<typename T, typename TResult> static IEnumerable<TResult>^ CountDown( IEnumerable<T>^ source, int count, Func<T, Nullable<int>, TResult>^ resultSelector )
[<ExtensionAttribute>] static member CountDown : source : IEnumerable<'T> * count : int * resultSelector : Func<'T, Nullable<int>, 'TResult> -> IEnumerable<'TResult>Parameters
Type:
IEnumerableTResultA sequence of results returned by
resultSelector.
Usage NoteIn Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)or
Extension Methods (C# Programming Guide).
RemarksThis method uses deferred execution semantics and streams its results. At most, count elements of the source sequence may be buffered at any one time unless source is a collection or a list.
See AlsoRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4