musique/examples/assigments-state-management.mq
2022-10-27 22:32:20 +02:00

28 lines
375 B
Plaintext

----------------------------------
Simple variable assigment
----------------------------------
x := 10,
y := 20,
say x,
say y,
x = 30,
say x,
say y,
x = y,
say x,
say y,
----------------------------------
Array updates
----------------------------------
array := flat 1 2 3,
say array,
array = update array 1 10,
say array,
array = update array 1 (array.2),
say array,