Skip to content

Commit 2bd9abc

Browse files
feat: math_min + math_max aliases for scalar min/max builtins
1 parent d26d6e7 commit 2bd9abc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

omnimcode-core/src/interpreter.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2423,6 +2423,7 @@ impl Interpreter {
24232423
// stdlib-friendly aliases
24242424
| "math_log" | "math_sin" | "math_cos" | "math_tan" | "math_sqrt"
24252425
| "math_floor" | "math_ceil" | "math_round" | "math_abs" | "math_pow"
2426+
| "math_min" | "math_max"
24262427
| "unix_time" | "unix_time_ms"
24272428
| "str_lower" | "str_upper" | "str_find" | "str_rfind" | "str_strip"
24282429
| "env_var" | "dict_delete" | "dict_remove"
@@ -4266,6 +4267,8 @@ impl Interpreter {
42664267
"math_round" => self.call_function("round", args),
42674268
"math_abs" => self.call_function("abs", args),
42684269
"math_pow" => self.call_function("pow", args),
4270+
"math_min" => self.call_function("min", args),
4271+
"math_max" => self.call_function("max", args),
42694272
"unix_time" => self.call_function("now_unix", args),
42704273
"unix_time_ms" => self.call_function("now_ms", args),
42714274
"str_lower" => self.call_function("str_lowercase", args),

0 commit comments

Comments
 (0)