lua-users home
lua-l archive

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


>      rmin = rmin min value
>      rmax = rmax max value

If a<=b returned a instead of true, we could write "a<=b or b" for min
and "a>=b or b" for max :)


> This makes reductions a little easier to write,

Lua 5.1 offers the value math.huge, which you can use as the neutral
element for min.

-- Roberto