doc: update simple example with for-loop

This commit is contained in:
2025-05-08 10:51:59 +01:00
parent 0cf7dd9780
commit c31638c3de
2 changed files with 51 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
var y = 32.
var f = [ :x | x * 2 + y ].
var result = f(4).
var x = "Hello, world!".
for (ch, cy) in x do
cout put:ch
end