title: Mutate function parameters in Swift
body: <p>Is it possible mutating what variables passed as arguments to a function, point to, as their value, within the scope of that function, in Swift?</p>
  
  <pre><code>func exampleFunction(value: String, index: Int) -&gt; Bool {
      value = "Changed Value" // Error
      index = 3  // Error
  
      return true
  }
  </code></pre>
  
  <p>Calling it by:</p>
  
  <pre><code>var flag = exampleFunction("Passed Value", 2)
  </code></pre>
  
  <p>Is it possible to mutate the arguments passed as parameters, while within the scope of <code>exampleFunction</code>? if not, is there any other way to do this? Because using this we only change value of temp.</p>
  
  <pre><code>var temp = value
  temp = "temp Change"
  </code></pre>