[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.3: functional version of // operator?
- From: Miles Bader <miles@...>
- Date: Mon, 08 Jul 2013 16:31:18 +0900
Rena <hyperhacker@gmail.com> writes:
> do
> local f = loadstring("return function(a, b) return a // b end")
> if f then idiv = f()
> else idiv = function(a,b) return ifloor(a / b) end
> end
> end
Hmm, I think I'd prefer math.idiv... oO;
-miles
--
The trouble with most people is that they think with their hopes or
fears or wishes rather than with their minds. -- Will Durant