Last active
August 29, 2015 14:10
-
-
Save lbehnke/a6e71caf902551ad8ae2 to your computer and use it in GitHub Desktop.
Common control structures: Loops
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for index in 0...4 {} | |
| for name in names {} | |
| for (key, value) in map {} | |
| for var i = 0; i < 10; i++ {} | |
| for i in 0..<n {} | |
| for c in "string" {} | |
| while i < n {} | |
| do {} while i < n | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment