mirror of
https://codeberg.org/scip/rpnc.git
synced 2025-12-17 20:41:01 +01:00
14 lines
236 B
Lua
14 lines
236 B
Lua
|
|
-- simple function, return the lower number of the two operands
|
||
|
|
function lower(a,b)
|
||
|
|
if a < b then
|
||
|
|
return a
|
||
|
|
else
|
||
|
|
return b
|
||
|
|
end
|
||
|
|
end
|
||
|
|
|
||
|
|
function init()
|
||
|
|
-- expects 2 args
|
||
|
|
register("lower", 2, "lower")
|
||
|
|
end
|