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

@JvmName(name = "sumOfUInt")
fun Sequence<UInt>.sum(): UInt(source)
@JvmName(name = "sumOfULong")
fun Sequence<ULong>.sum(): ULong(source)
@JvmName(name = "sumOfUByte")
fun Sequence<UByte>.sum(): UInt(source)
@JvmName(name = "sumOfUShort")
fun Sequence<UShort>.sum(): UInt(source)

Returns the sum of all elements in the sequence.

The operation is terminal.

Since Kotlin

1.5