(Available since version 1.0)
LinkedList::offsetSet — Sets a new value at a specified index
Sets the value at the specified
index
to
newval
.
Note:
This is a slow method (Θ(n) amortized time) due to the seek operation involved.
index
The index being set.
newval
The new value for the index
.
No value is returned.
Throws SEIDS::LinkedLists::OutOfRangeException when
index
is out of bounds or when index
cannot be parsed as an integer.