Try modifying your code as follows: function try( ... ) local someArguments = { ... } + local n = select("#", ...) local aFunction = function() < tryToDoIt( unpack( someArguments ) ) > tryToDoIt( unpack( someArguments, 1, n ) ) -- Wim