Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
average
@JvmName("averageOfByte") fun Array<out Byte>.average(): Double
(source)
@JvmName("averageOfShort") fun Array<out Short>.average(): Double
(source)
@JvmName("averageOfInt") fun Array<out Int>.average(): Double
(source)
@JvmName("averageOfLong") fun Array<out Long>.average(): Double
(source)
@JvmName("averageOfFloat") fun Array<out Float>.average(): Double
(source)
@JvmName("averageOfDouble") fun Array<out Double>.average(): Double
(source)
Returns an average value of elements in the array.
Returns an average value of elements in the collection.