function func(...) local n = {...} for i =1, table.getn(n) do print(n[i]) end end func(1,2,3, "test",5)