I am aware that modifying an argument of a function will not have any effect outside the function in case it is a primitive.
However, in a function where the argument