set

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

Sets the value at the given index from this deque.

If the given index is less than zero or greater than lastIndex an exception will be thrown.

Parameters

index

Index of the item in this deque that will be replaced with value.

value

Value to set at the given index.

Throws

If index is less than zero or greater than lastIndex.