2022-06-06 04:03:40 +02:00
|
|
|
----------------------------------
|
|
|
|
Simple variable assigment
|
|
|
|
----------------------------------
|
2022-09-18 14:50:20 +02:00
|
|
|
x := 10;
|
|
|
|
y := 20;
|
2022-06-06 04:03:40 +02:00
|
|
|
say x;
|
|
|
|
say y;
|
|
|
|
|
|
|
|
x = 30;
|
|
|
|
say x;
|
|
|
|
say y;
|
|
|
|
|
|
|
|
x = y;
|
|
|
|
say x;
|
|
|
|
say y;
|
|
|
|
|
|
|
|
----------------------------------
|
|
|
|
Array updates
|
|
|
|
----------------------------------
|
2022-09-18 14:50:20 +02:00
|
|
|
array := flat 1 2 3;
|
2022-06-06 04:03:40 +02:00
|
|
|
say array;
|
|
|
|
|
|
|
|
array = update array 1 10;
|
|
|
|
say array;
|
|
|
|
|
|
|
|
array = update array 1 (array.2);
|
|
|
|
say array;
|