[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: append to list operator
- From: Sergey Kovalev <kovserg33@...>
- Date: Fri, 16 Aug 2019 17:33:17 +0300
чт, 15 авг. 2019 г. в 11:00, Oliver <oschmidt-mailinglists@gmx.de>:
>
> On 13.08.19 06:45, Sean Conner wrote:
> > Well, another pain point is
> > veryLongNmae[complexLValue] = veryLongName[complexLValue] + 1
>
> a similar and common use case is appending an element to an array: it's also
> painful to write:
>
> complexLValue[#complexLValue + 1] = newElement;
>
I can reduce your pain. Just write:
table.insert(complexLValue,newElement)