For loop on arrays working, untested, read more

Needed: break and continue support, extensive tests, other iterables
This commit is contained in:
2026-05-24 18:13:18 +10:00
parent 813da3e1aa
commit f11bc95833
10 changed files with 241 additions and 58 deletions
+5 -7
View File
@@ -1,12 +1,10 @@
var array = ["foo", "bar"];
fn a(x) {
print x;
for (var i in array) {
print i;
break;
}
fn b() {
return 42;
}
a(b(), b());
print "done";