sumOf

Common
JVM
JS
Native
1.4
@JvmName ( "sumOfDouble" ) inline fun < T > Sequence < T > . sumOf (
selector : ( T ) -> Double
) : Double

(source)
Common
JVM
JS
Native
1.4
@JvmName ( "sumOfInt" ) inline fun < T > Sequence < T > . sumOf (
selector : ( T ) -> Int
) : Int

(source)
Common
JVM
JS
Native
1.4
@JvmName ( "sumOfLong" ) inline fun < T > Sequence < T > . sumOf (
selector : ( T ) -> Long
) : Long

(source)
Common
JVM
JS
Native
1.5
@JvmName ( "sumOfUInt" ) inline fun < T > Sequence < T > . sumOf (
selector : ( T ) -> UInt
) : UInt

(source)
Common
JVM
JS
Native
1.5
@JvmName ( "sumOfULong" ) inline fun < T > Sequence < T > . sumOf (
selector : ( T ) -> ULong
) : ULong

(source)
JVM
1.4
@JvmName ( "sumOfBigDecimal" ) inline fun < T > Sequence < T > . sumOf (
selector : ( T ) -> BigDecimal
) : BigDecimal

(source)
JVM
1.4
@JvmName ( "sumOfBigInteger" ) inline fun < T > Sequence < T > . sumOf (
selector : ( T ) -> BigInteger
) : BigInteger

(source)

Returns the sum of all values produced by selector function applied to each element in the sequence.

The operation is terminal .