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

10 lines
114 B
Plaintext

let x = [1, 2, 3];
print("x[1] should be 2:");
print(x[1]);
x[1] = 5;
print("x[1] should be 5:");
print(x[1]);