sumByDouble

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

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