title: How to change agent's variable by passing variable name and value to a function?
body: <p>How is it possible to change specific variable of an agent by passing variable name to a function?</p>
  
  <p>for example I have turtles with variable MONEY and the following function:</p>
  
  <pre><code>to setVariable [varname varvalue]
  [
     ask one-of turtles [ set varname varvalue ]
  ]
  end
  </code></pre>
  
  <p>Now I want to run:</p>
  
  <p>observer> ask one-of turtles [setVariable MONEY 100] ;; I need to ask via another turtle since I cannot use MONEY directly in observer context</p>
  
  <p>And it does not set my variable without giving any errors.</p>
  
  <p>Interestingly, you can read a variable in similar manner:</p>
  
  <pre><code>to showVariable [varname ]
      [
         ask one-of turtles [ show varname ]
      ]
  end
  </code></pre>
  
  <p>So the question here is how to "convert" my function input into turtle's variable name it would recognise well for SET purposes.</p>
  
  <p>PS: I don't want to use run function as it would slow down the model.</p>