Sets the array element indicated by a set of indices.
Sets the element of array indicated by indices to the new-value and returns the new-value. array is modified by this operation.
An error is signaled if the number of indices is not equal to the rank of the array. An error is signaled if any of the indices are out of bounds for array. An error is signaled if the array is limited to hold objects of a particular type and the new value is not an instance of that type.
The method for <array> calls element-setter on the array and new value, using as the key the result of applying row-major-index to the array and indices.
open
| new-value | An instance of <object>. |
| array | An instance of <array>. |
| #rest indices | Instances of <object>. |
| new-value | An instance of <object>. |