title: How to pass a tuple as arguments to a Lua function?
body: <p>Is there a way to pass a tuple as the parameters of a Lua function?</p>
  
  <p>For example, I have a function that returns multiple values</p>
  
  <pre><code>function f(a,b)  return b,a end
  </code></pre>
  
  <p>and I want this function <code>f</code> to be repeatedly applied, so I can write:</p>
  
  <pre><code>f (f ... f(1,2))
  </code></pre>
  
  <p>But what if I need to store this initial tuple <code>(1,2)</code> as a variable <code>init</code>?</p>
  
  <pre><code>f (f ... f(init))
  </code></pre>
  
  <p>Is there support for this?</p>
  
  <p>According to <a href="https://stackoverflow.com/a/10625231/683218">this answer</a>, it seems python has it with the splat operator <code>*</code>.</p>