Returns the sum of values after applying `fun` to each element, using the specified `Summation` method.
Returns the sum of values after applying `fun` to each element, using the specified `Summation` method.