rhai/scripts/array.rhai

8 lines
96 B
Plaintext
Raw Normal View History

let x = [1, 2, 3];
2020-03-16 07:50:12 +01:00
print(x[1]); // prints 2
2016-03-26 18:46:28 +01:00
x[1] = 5;
2020-03-16 07:50:12 +01:00
print(x[1]); // prints 5