Use sumOf instead.
this.sumOf(selector)
Returns the sum of all values produced by selector function applied to each element in the sequence.
The operation is terminal.
Thanks for your feedback!