rhai/scripts/array.rhai

5 lines
55 B
Plaintext

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