Array objects are mutable. You can use []= to replace an existing array element given its 0-based index, just as you can use [] to retrieve an element by index.

You can learn more about this in:
Run Expand Edit