sumByDouble
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
@DeprecatedSinceKotlin("1.5") inline fun <T> Array<out T>.sumByDouble( selector: (T) -> Double ): DoubleDeprecated: Use sumOf instead.
@DeprecatedSinceKotlin("1.5") inline fun ByteArray.sumByDouble( selector: (Byte) -> Double ): DoubleDeprecated: Use sumOf instead.
@DeprecatedSinceKotlin("1.5") inline fun ShortArray.sumByDouble( selector: (Short) -> Double ): DoubleDeprecated: Use sumOf instead.
@DeprecatedSinceKotlin("1.5") inline fun IntArray.sumByDouble( selector: (Int) -> Double ): DoubleDeprecated: Use sumOf instead.
@DeprecatedSinceKotlin("1.5") inline fun LongArray.sumByDouble( selector: (Long) -> Double ): DoubleDeprecated: Use sumOf instead.
@DeprecatedSinceKotlin("1.5") inline fun FloatArray.sumByDouble( selector: (Float) -> Double ): DoubleDeprecated: Use sumOf instead.
@DeprecatedSinceKotlin("1.5") inline fun DoubleArray.sumByDouble( selector: (Double) -> Double ): DoubleDeprecated: Use sumOf instead.
@DeprecatedSinceKotlin("1.5") inline fun BooleanArray.sumByDouble( selector: (Boolean) -> Double ): DoubleDeprecated: Use sumOf instead.
@DeprecatedSinceKotlin("1.5") inline fun CharArray.sumByDouble( selector: (Char) -> Double ): DoubleDeprecated: Use sumOf instead.
@DeprecatedSinceKotlin("1.5") @ExperimentalUnsignedTypes inline fun UIntArray.sumByDouble( selector: (UInt) -> Double ): DoubleDeprecated: Use sumOf instead.
@DeprecatedSinceKotlin("1.5") @ExperimentalUnsignedTypes inline fun ULongArray.sumByDouble( selector: (ULong) -> Double ): DoubleDeprecated: Use sumOf instead.
@DeprecatedSinceKotlin("1.5") @ExperimentalUnsignedTypes inline fun UByteArray.sumByDouble( selector: (UByte) -> Double ): DoubleDeprecated: Use sumOf instead.
@DeprecatedSinceKotlin("1.5") @ExperimentalUnsignedTypes inline fun UShortArray.sumByDouble( selector: (UShort) -> Double ): DoubleDeprecated: Use sumOf instead.
Returns the sum of all values produced by selector function applied to each element in the array.
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
@DeprecatedSinceKotlin("1.5") inline fun <T> Iterable<T>.sumByDouble( selector: (T) -> Double ): DoubleDeprecated: Use sumOf instead.
Returns the sum of all values produced by selector function applied to each element in the collection.
© 2010–2021 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/sum-by-double.html