kool
/
kool.lib
/
sumBy
sum
By
inline fun
ByteBuffer
.
sumBy
(selector: (
Byte
) ->
Int
):
Int
Content copied to clipboard
inline fun
ShortBuffer
.
sumBy
(selector: (
Short
) ->
Int
):
Int
Content copied to clipboard
inline fun
IntBuffer
.
sumBy
(selector: (
Int
) ->
Int
):
Int
Content copied to clipboard
inline fun
LongBuffer
.
sumBy
(selector: (
Long
) ->
Int
):
Int
Content copied to clipboard
inline fun
FloatBuffer
.
sumBy
(selector: (
Float
) ->
Int
):
Int
Content copied to clipboard
inline fun
DoubleBuffer
.
sumBy
(selector: (
Double
) ->
Int
):
Int
Content copied to clipboard
inline fun
CharBuffer
.
sumBy
(selector: (
Char
) ->
Int
):
Int
Content copied to clipboard
Returns the sum of all values produced by
selector
function applied to each element in the buffer.