lua-users home
lua-l archive

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


Roberto Ierusalimschy wrote:

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


what about
a = (a<=b and a) or b

Adrian