sumBy
@DeprecatedSinceKotlin("1.5") inline fun BooleanArray.sumBy(
selector: (Boolean) -> Int
): Int
(source)
@DeprecatedSinceKotlin("1.5") @ExperimentalUnsignedTypes inline fun ULongArray.sumBy(
selector: (ULong) -> UInt
): UInt
(source)
@DeprecatedSinceKotlin("1.5") @ExperimentalUnsignedTypes inline fun UByteArray.sumBy(
selector: (UByte) -> UInt
): UInt
(source)
@DeprecatedSinceKotlin("1.5") @ExperimentalUnsignedTypes inline fun UShortArray.sumBy(
selector: (UShort) -> UInt
): UInt
(source)
Returns the sum of all values produced by selector function applied to each element in the array.