This website requires JavaScript.
Explore
Help
Register
Sign In
retoor
/
wren
Watch
1
Star
0
Fork
0
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
fcf4197139858df8793397428599305007618b22
wren
/
test
/
language
/
break
/
in_for_loop.wren
T
11 lines
143 B
Plaintext
Raw
Normal View
History
Unescape
Escape
For loops!
2013-12-24 21:04:11 -08:00
for (i in [1, 2, 3, 4, 5]) {
Clean up text handling a bit:
2014-01-05 12:27:12 -08:00
IO.print(i)
For loops!
2013-12-24 21:04:11 -08:00
if (i > 2) break
Clean up text handling a bit:
2014-01-05 12:27:12 -08:00
IO.print(i)
For loops!
2013-12-24 21:04:11 -08:00
}
// expect: 1
// expect: 1
// expect: 2
// expect: 2
// expect: 3
Reference in New Issue
Copy Permalink