lua-users home
lua-l archive

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




On 28/09/16 07:06 PM, Egor Skriptunoff wrote:
On Thu, Sep 29, 2016 at 12:28 AM, Soni L. <fakedme@gmail.com <mailto:fakedme@gmail.com>> wrote:


    NVL=load"return...==''and({...})[2]or..."

Bravo!

Lets note that my solutions are Lua 5.1 compatible, and using "load" instead of "function" can reduce their size.

As for now, two tasks to solve:
1) Find 41-byte solution compatible with Lua 5.1, 5.2 and 5.3
2) Find 36-byte solution for latest version of Lua

NVL=load"return({...})[#...+2]or..."

--
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.