average

@JvmName(name = "averageOfByte")
fun Sequence<Byte>.average(): Double(source)
@JvmName(name = "averageOfShort")
fun Sequence<Short>.average(): Double(source)
@JvmName(name = "averageOfInt")
fun Sequence<Int>.average(): Double(source)
@JvmName(name = "averageOfLong")
fun Sequence<Long>.average(): Double(source)
@JvmName(name = "averageOfFloat")
fun Sequence<Float>.average(): Double(source)
@JvmName(name = "averageOfDouble")
fun Sequence<Double>.average(): Double(source)

Returns an average value of elements in the sequence.

The operation is terminal.

Since Kotlin

1.0