lua-users home
lua-l archive

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


2016-05-31 17:51 GMT+02:00 Jay Carlson <nop@nop.com>:
>
>> On 2016-05-31, at 10:33 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
>>
>>> (~"x+y,-x+y")(3,5)  --> 8    2
>>
>
> I like this, or I am amused by it...or something.
>
> This is a little prettier as
>
>   ~[[x+y,x+y]](3,5)

You still need the parentheses: (~[[x+y,x+y]])(3,5)