ForEach
Passes each value in the given sequence to a function, and outputs the sum of the values returned by this function.
Syntax
Action.ForEach
· [sequence]
· [func]
Parameters
- sequence
- The sequence to loop through.
- func
- A function that takes each value in the sequence and performs some action with each value. The return value of the function must be an additive, such as a string, a number or void.
Return Value
The sum of the values returned by func.