>
|
|
>
|
|
>
|
|
In general, a list is not mutable.
>
|
|
| (4) |
| (5) |
This does not change the lists in-place, and in fact this syntax for "changing" a list is only supported for small lists, as it is very inefficient.
| (7) |
The original lists are unchanged, because lists are not mutable.
| (8) |
A list containing an Array is mutable because the Array is mutable.
>
|
|
| (10) |
| (11) |
This changes the contents of the Array in-place, and thus the containing list is unaffected.