rhai/scripts/function_decl3.rhai

10 lines
187 B
Plaintext
Raw Normal View History

2020-03-16 07:50:12 +01:00
// 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
}
2020-05-02 10:23:36 +02:00
print("f() call should be 4:");
print(f(100, 5, 2, 9, 6, 32));