[go: up one dir, main page]

rhai 1.3.0

Embedded scripting for Rust
Documentation
1
2
3
4
5
6
7
8
9
// This script defines a function and calls it

fn bob() {
    return 3;
}

let result = bob();

print(`bob() should be 3: ${result}`);