[honu] add example of for form for iterating over lists
This commit is contained in:
parent
501efef8a1
commit
386d3f4e1f
|
@ -7,3 +7,7 @@ for x = 1 to 10 do {
|
|||
var y = x + 1;
|
||||
printf("x ~a y ~a\n", x, y)
|
||||
}
|
||||
|
||||
for x in [1, 2, 3] do {
|
||||
printf("x ~a\n", x);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user