public static IEnumerable<TResult> GenerateByIndex<TResult>(
Func<int, TResult> generator
)
Public Shared Function GenerateByIndex(Of TResult) (
generator As Func(Of Integer, TResult)
) As IEnumerable(Of TResult)
public:
generic<typename TResult>
static IEnumerable<TResult>^ GenerateByIndex(
Func<int, TResult>^ generator
)
static member GenerateByIndex :
generator : Func<int, 'TResult> -> IEnumerable<'TResult>
The sequence is (practically) infinite where the index ranges from zero to MaxValue inclusive.
This function defers execution and streams the results.