Created
September 28, 2017 16:24
-
-
Save jyaunches/e14c3e1f1222da9d3d2763ba82444632 to your computer and use it in GitHub Desktop.
Swift collections for-in basic
This file contains 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
let numbers = 1...3 | |
for number in numbers { | |
print(number) | |
} | |
// Prints "1" | |
// Prints "2" | |
// Prints "3" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment