lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, Oct 29, 2020 at 12:20:54AM +0000, Andrew Gierth wrote:
<snip>
> Now, for something other than "drop the first result" which happens to
> be easy without needing a table, it might well be simpler to use a table
> (dropping the last result, for example, would require a lot of
> recursion).

Dropping trailing arguments does seem tricky (without the C API), but
dropping the first n arguments is as simple as `return select(n, ...)`.