3 ms·
You can't change which list `foo` refers to, though. Only the contents of that list. `foo` is a reference to a list, and that reference is passed by value.
by pansa2 2y ago
You can't change which list `foo` refers to, though. Only the contents of that list.
`foo` is a reference to a list, and that reference is passed by value.