rhai/scripts/array.rhai
2020-03-16 14:50:12 +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