Re: Short form for defining a function (Was: try-catch ...)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Short form for defining a function (Was: try-catch ...)
- From: Dirk Laurie <dirk.laurie@...>
- Date: Wed, 1 Jun 2016 09:45:27 +0200
2016年06月01日 9:35 GMT+02:00 Aapo Talvensaari <aapo.talvensaari@gmail.com>:
> On Tuesday, 31 May 2016, Dirk Laurie <dirk.laurie@gmail.com> wrote:
>>
>> 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)
>
>
> How about:
> ~{"x+y","x+y"}(3,5)
Table literals have no metatable.