[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Returning nil vs returning nothing
- From: William Ahern <william@...>
- Date: Wed, 28 Oct 2020 23:43:44 -0700
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, ...)`.