sumOf

inline fun sumOf(element: (Float) -> Float): Float(source)

Returns the sum of all elements in the list after transforming them by the given element function.

Parameters

element

The transformation function applied to each element before summing.