[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Proposal: Lua should have arrow operators
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 3 Jul 2017 19:44:40 -0300
> math.exp( 1 )->cosh()->round( 7 )
You can almost do that right now:
debug.setmetatable(0,{
__bor = function (x,y) return y(x) end
})
print(math.exp(1) | math.cosh)