MapIndexed2
Builds a new collection whose elements are the results of applying the given mapping
function to each pair of the elements of the collections.
The integer index passed to the function indicates the index (from 0) of element being transformed.
Parameters | Returns |
Func<int, T, T2, TResult> mapping IEnumerable<T> source IEnumerable<T2> source2 | IEnumerable<TResult> |
Usage
Multiplying the sum of each pair of values by its index
Last updated