rhai/scripts/function_decl3.rhai
2020-03-16 14:50:12 +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