sum

@JvmName(name = "sumOfByte")
fun Sequence<Byte>.sum(): Int(source)
@JvmName(name = "sumOfShort")
fun Sequence<Short>.sum(): Int(source)
@JvmName(name = "sumOfInt")
fun Sequence<Int>.sum(): Int(source)
@JvmName(name = "sumOfLong")
fun Sequence<Long>.sum(): Long(source)
@JvmName(name = "sumOfFloat")
fun Sequence<Float>.sum(): Float(source)
@JvmName(name = "sumOfDouble")
fun Sequence<Double>.sum(): Double(source)

Returns the sum of all elements in the sequence.

The operation is terminal.

Since Kotlin

1.0