Rust ?
A function can take ownership of a variable that’s stored on a heap, the variable is no longer valid after being used as an argument in the function.
However, if we pass a reference of the variable to the function, the function must also expect a reference
The function can’t mutate the reference.
For a function to mutate a reference, you need to initialize the variable as mutable and the function must expect a mutable reference variable.
For a simple reference, you can use multiple within the scope of the variable, but just one…