Ok I see where my confusion was now. You can have mutable arrays e.g. var Arr: []int
, but when that’s passed to a function it become immutable (unless there is a way to annotate in the function signature that it is mutable I don’t know about).
Ok I see where my confusion was now. You can have mutable arrays e.g. var Arr: []int
, but when that’s passed to a function it become immutable (unless there is a way to annotate in the function signature that it is mutable I don’t know about).