set

operator fun set(index: Int, element: Int): Int(source)

Sets the value at index to element.

Return

the previous value set at index

Throws

if index isn't between 0 and lastIndex, inclusive