[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.3: functional version of // operator?
- From: Sean Conner <sean@...>
- Date: Mon, 8 Jul 2013 04:52:26 -0400
It was thus said that the Great Miles Bader once stated:
>
> For that reason, it would be nice if Lua 5.3 came with a standard
> "math.idiv" function, which basically just returns a//b...
Hmm ... in C, the div() function returns both the quotient and the
remainder. If one is provided, you might as well return both results [1].
-spc
[1] Wrote my own idiv() function that does just that:
https://github.com/spc476/lua-conmanorg/blob/master/src/math.c