Available since: 1.0.0
Time complexity: O(N) where N is the length of the list. Setting either the first or the last element of the list is O(1).
Sets the list element at
For more information on the
index argument, see
An error is returned for out of range indexes.