Re: fun with table constructors
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: fun with table constructors
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2001年1月30日 08:56:06 -0200 (EDT)
>> One other annoyance is that you can't directly apply an anonymous function:
>>
>> (function (x) print(x) end) "hello"
>
>You can write «Id(function (x) print(x) end) "hello"» (where Id is the
>identity function), but I agree this is a little inconvenient.
>
Or
do
local f=function (x) print(x) end
f"hello"
end
which is not convenient either, but perhaps is clearer.
--lhf