sumBy
@DeprecatedSinceKotlin
(
"1.5"
)
inline
fun
<
T
>
Array
<
out
T
>
.
sumBy
(
selector
:
(
T
)
->
Int
)
:
Int
(source)
@DeprecatedSinceKotlin
(
"1.5"
)
inline
fun
ShortArray
.
sumBy
(
selector
:
(
Short
)
->
Int
)
:
Int
(source)
@DeprecatedSinceKotlin
(
"1.5"
)
inline
fun
FloatArray
.
sumBy
(
selector
:
(
Float
)
->
Int
)
:
Int
(source)
@DeprecatedSinceKotlin
(
"1.5"
)
inline
fun
DoubleArray
.
sumBy
(
selector
:
(
Double
)
->
Int
)
:
Int
(source)
@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.