I was making a script to get the largest value out of an unknown number of arguments, but I can't really figure out how to use (...) tuple.
Can someone explain how it works, please? The only thing I know is that it's not a true tuple, since lua actually treats them as individual values and not a data structure like a table or such.
Thanks!
local function Val(...)
print(...)
end
Val(1, 2, 3, 4, 5, 6)
1, 2, 3, 4, 5, 6
The code isn't really that important to the question, Its just what I first was messing around with.

1 comment
local function max(...) return math.max(...); end