I have a function that takes a variable amount of int as arguments.
thisFunction(1,1,1,2,2,2,2,3,4,4,7,4,2)
this function was provided as part of the framework, and I would prefer not to change the code of the function or .lua from which it is taken. So I want a function that repeats a number for me a certain number of times, so this is less repeated. Something that could work that way and achieve what was done above
thisFunction(repeatNum(1,3),repeatNum(2,4),3,repeatNum(4,2),7,4,2)
is this possible in Lua? I even like something like this:
thisFunction(repeatNum(1,3,2,4,3,1,4,2,7,1,4,1,2,1))