lua-users home
lua-l archive

Re: Short form for defining a function (Was: try-catch ...)

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


> 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)
Jay

AltStyle によって変換されたページ (->オリジナル) /