lua-users home
lua-l archive

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


Egor Skriptunoff wrote:
> On Thu, Sep 29, 2016 at 2:59 AM, Valentin <vsl@dasdeck.com> wrote:
> 
>> > Only one task is remaining to solve.
>> > Try to find 41-byte solution for Lua 5.1
>>
>> I found one:
>>
>> function NVL(...)return arg[#x+2]or x end
>>
>> It says "attempt to get length of global 'x' (a nil value)"

Yes, realized directly after posting, sorry.

This one works, but has 43 bytes, sigh ;)

function NVL(x,...)return arg[#x+1]or x end