sumBy
inline fun ByteArray.sumBy(selector: (Byte) -> Int): Int
inline fun ShortArray.sumBy(selector: (Short) -> Int): Int
inline fun IntArray.sumBy(selector: (Int) -> Int): Int
inline fun LongArray.sumBy(selector: (Long) -> Int): Int
inline fun FloatArray.sumBy(selector: (Float) -> Int): Int
inline fun DoubleArray.sumBy(selector: (Double) -> Int): Int
inline fun BooleanArray.sumBy(
selector: (Boolean) -> Int
): Int
inline fun CharArray.sumBy(selector: (Char) -> Int): Int
@ExperimentalUnsignedTypes inline fun ULongArray.sumBy(
selector: (ULong) -> UInt
): UInt
@ExperimentalUnsignedTypes inline fun UByteArray.sumBy(
selector: (UByte) -> UInt
): UInt
@ExperimentalUnsignedTypes inline fun UShortArray.sumBy(
selector: (UShort) -> UInt
): UInt
Returns the sum of all values produced by selector function applied to each element in the array.