lua-users home
lua-l archive

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


> A close form could already be implemented, without upvalues though:
>
> local f = y[[ x + y with x, y ]]
>

I think this looks rather nice actually. Doesn't seem like too much
trouble to implement a such y-function and call it lambda or whatever
catches one's fancy.
+ for not needing to modify lua to implement it. A downside i can see
is that it wouldn't get compiled until y/lambda gets called, but i
could live with that.