rhai/scripts/function_decl3.rhai
2020-05-02 16:23:36 +08:00

10 lines
187 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() call should be 4:");
print(f(100, 5, 2, 9, 6, 32));