rhai/scripts/function_decl3.rhai
2020-03-18 10:40:07 +08:00

8 lines
177 B
Plaintext

// This script defines a function with many parameters and calls it
fn f(a, b, c, d, e, f) {
a - b * c - d * e - f
}
print(f(100, 5, 2, 9, 6, 32)); // should print 4