set

operator fun set(index: Int, value: Double): Double(source)

Replaces the element at index with value.

Return

the previous element at index.

Throws

if index is out of bounds [0, size).