Overview
Sets the list element atindex to value. The index is zero-based. An error is returned for out of range indexes.
Method Signature
Parameters
The key of the list.
The index of the element to set (zero-based). Negative indices count from the end of the list (e.g.,
-1 is the last element, -2 is the second-to-last).The new value to set at the specified index.
Return Value
Returns
"OK" on success. Throws an error if the index is out of range or the key does not exist.