operator fun set(index: Int, newValue: Int)
(source)
Atomically sets the value of the element at the given index to the new value.
Provides sequential consistent ordering guarantees.
Exceptions
IndexOutOfBoundsException
- if the index is out of bounds of this array.