LinkedList::offsetSet

(Available since version 1.0)

LinkedList::offsetSetSets a new value at a specified index

Description

public void LinkedList::offsetSet ( int $index , mixed $newval )

Sets the value at the specified index to newval.

Note:

This is a slow method (Θ(n) amortized time) due to the seek operation involved.

Parameters

index

The index being set.

newval

The new value for the index.

Return Values

No value is returned.

Errors/Exceptions

Throws SEIDS::LinkedLists::OutOfRangeException when index is out of bounds or when index cannot be parsed as an integer.

To Top