Skip to content

Instantly share code, notes, and snippets.

@jyaunches
Created September 28, 2017 16:26
Show Gist options
  • Save jyaunches/9104ebc81c77bf2ce2f2172449d877db to your computer and use it in GitHub Desktop.
Save jyaunches/9104ebc81c77bf2ce2f2172449d877db to your computer and use it in GitHub Desktop.
For-in loop without Sequence protocol
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