Created
September 28, 2017 16:26
-
-
Save jyaunches/9104ebc81c77bf2ce2f2172449d877db to your computer and use it in GitHub Desktop.
For-in loop without Sequence protocol
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, 2, 3] | |
let index = numbers.count | |
var i = 0; | |
while i < index { | |
print(numbers[i]) | |
i += 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment