setAt

fun setAt(index: Int, value: T): T?(source)

Sets the value of the row at the provided index. If index == size, a new row is added. Returns the value previously at said row or null if no such row existed.