For In
Syntaxe commune
for int x in 0 .. 10
print x
/for
print x
/for
Syntax une-ligne
Si le corps de la structure n'a qu'une seule instruction, une
syntaxe simplifiée en une ligne peut être utilisée:
for int x in 0 .. 10 print
x
For in liste
La structure de contrôle for peut parcourir un intervalle,
mais aussi un texte ou un tableau..
text hello = "hello"
for text t in hello print t
for text t in hello print t
array a = { 1, 2, 3 }
for dyn x in a print x
for dyn x in a print x