rhai/scripts/array.rhai
2020-03-18 10:40:07 +08:00

8 lines
96 B
Plaintext

let x = [1, 2, 3];
print(x[1]); // prints 2
x[1] = 5;
print(x[1]); // prints 5