kmongo / kotlin.collections / com.mongodb.client.MongoIterable / sumByDouble

sumByDouble

inline fun <T> MongoIterable<T>.sumByDouble(crossinline selector: (T) -> Double): Double (source)

Returns the sum of all values produced by selector function applied to each element in the collection.