mirror of
https://codeberg.org/scip/rpnc.git
synced 2025-12-16 20:11:02 +01:00
* added commandline and stdin tests using testscript --------- Co-authored-by: Thomas von Dein <tom@vondein.org>
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
|