set

abstract fun set(index: Int, value: Long)

Set the value at the given index in the array.

Parameters

index

where the value should be positioned.

value

a value conforming to the constraints set by the array.


open fun set(index: Int, arr: LongArray, off: Int, len: Int): Int

Bulk set: set at least one and at most len longs starting at off in arr into this mutable, starting at index. Returns the actual number of values that have been set.