title: append to function lua
body: <p>I have a function I want to add to dynamically as the program runs.</p>
  
  <p>Let's say I have function Foo:</p>
  
  <pre><code>function foo()
      Function1()
      Function2()
      Function3()
  end
  </code></pre>
  
  <p>and I want to change Foo() to:</p>
  
  <pre><code>function foo()
      Function1()
      Function2()
      Function3()
      Function4()
  end
  </code></pre>
  
  <p>later in the program. Is there any way to do this?</p>