lua-users home
lua-l archive

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

Sorry for intruding here, but wouldn't be even more concise (but not not readable at first):

value first, then keys

tbl = multi_setval(
{'good', 'a','b','c'},
{'bad', 4,5,6},
{'so_so', 7,'8','9'}

On 8/24/2011 7:22 AM, Lorenzo Donati wrote:
On 24/08/2011 9.04, Greg Ludwig wrote:

Interesting approaches! Especially:

tbl = multi_setval(
{'a','b','c', val=good},
{4,5,6, val=bad},
{7,'8','9', val=so_so}

I haven't the time to examine them closely ATM.

For now, thank you very much for the feedback!

-- Lorenzo