[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: fun with table constructors
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 30 Jan 2001 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.
local f=function (x) print(x) end
which is not convenient either, but perhaps is clearer.