Applies a function f to all elements of this list. Also passes an element index (int) to function f.
Namespace: FlinqAssembly: Flinq (in Flinq.dll) Version: 1.0.2.0 (1.0.2.0)
Syntax
C# |
---|
public static void ForEach<A>( this IEnumerable<A> source, Action<A, int> f ) |
Parameters
- source
- Type: System.Collections.Generic..::..IEnumerable<(Of <(<'A>)>)>
The input sequence.
- f
- Type: System..::..Action<(Of <(<'A, Int32>)>)>
The function that is applied for its side-effect to every element.
Type Parameters
- A
- The type of the elements in the input sequence.