For loops!

This commit is contained in:
Bob Nystrom
2013-12-24 21:04:11 -08:00
parent 1e0401bfc1
commit e6e7b2594c
18 changed files with 404 additions and 163 deletions
+10
View File
@@ -0,0 +1,10 @@
for (i in [1, 2, 3, 4, 5]) {
IO.write(i)
if (i > 2) break
IO.write(i)
}
// expect: 1
// expect: 1
// expect: 2
// expect: 2
// expect: 3