title: handling arguments in Lua function with variable number of arguments
body: <p>I was trying to write a function with a variable number of arguments which do something for all its number entries. so I came up with something like this:</p>
  
  <pre class="lang-lua prettyprint-override"><code>function luaFunc (...)
     for i,v in ipairs{...} do
        if type(v)=='number' then
           --do something
        end
     end
  end
  </code></pre>
  
  <p>but when i run this, it stops right on first non-number argument. whats the problem?</p>