lua-users home
lua-l archive

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


On Sat, Sep 22, 2018 at 2:51 AM, Lorenzo Donati
<lorenzodonatibz@tiscali.it> wrote:
> On 11/09/2018 22:14, Roberto Ierusalimschy wrote:
> [...]
>
>> local Y = function (le)
>>       local a = function (f)
>>         return le(function (...) return f(f)(...) end)
>>       end
>>       return a(a)
>>     end
>>
>
> OUCH! My brain hurts!
>
> I can "feel" its beauty, but it's way over my functional head to understand!
>
> (It almost reminds me of the difficulties of understanding Duff's device :-)
>

I dunno, Duff's device is pretty simple by comparison.

/s/ Adam