sum Of
Returns the sum of all values produced by selector function applied to each element in the array.
Since Kotlin
1.4
Returns the sum of all values produced by selector function applied to each element in the array.
Since Kotlin
1.5
Returns the sum of all values produced by selector function applied to each element in the collection.
Since Kotlin
1.4
Returns the sum of all values produced by selector function applied to each element in the collection.
Since Kotlin
1.5
inline fun <T> Array<out T>.sumOf(selector: (T) -> BigDecimal): BigDecimal
Content copied to clipboard
inline fun DoubleArray.sumOf(selector: (Double) -> BigDecimal): BigDecimal
Content copied to clipboard
inline fun BooleanArray.sumOf(selector: (Boolean) -> BigDecimal): BigDecimal
Content copied to clipboard
inline fun <T> Array<out T>.sumOf(selector: (T) -> BigInteger): BigInteger
Content copied to clipboard
inline fun DoubleArray.sumOf(selector: (Double) -> BigInteger): BigInteger
Content copied to clipboard
inline fun BooleanArray.sumOf(selector: (Boolean) -> BigInteger): BigInteger
Content copied to clipboard
@ExperimentalUnsignedTypes
Content copied to clipboard
@ExperimentalUnsignedTypes
Content copied to clipboard
@ExperimentalUnsignedTypes
Content copied to clipboard
@ExperimentalUnsignedTypes
Content copied to clipboard
@ExperimentalUnsignedTypes
Content copied to clipboard
@ExperimentalUnsignedTypes
Content copied to clipboard
@ExperimentalUnsignedTypes
Content copied to clipboard
@ExperimentalUnsignedTypes
Content copied to clipboard
Returns the sum of all values produced by selector function applied to each element in the array.
Since Kotlin
1.4
inline fun <T> Iterable<T>.sumOf(selector: (T) -> BigDecimal): BigDecimal
Content copied to clipboard
inline fun <T> Iterable<T>.sumOf(selector: (T) -> BigInteger): BigInteger
Content copied to clipboard
Returns the sum of all values produced by selector function applied to each element in the collection.
Since Kotlin
1.4