Created
August 10, 2015 12:56
-
-
Save chriseidhof/bbb144238baf1c01f785 to your computer and use it in GitHub Desktop.
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
import Foundation | |
var generator = [1,2,3].generate() | |
while let i = generator.next() { | |
print(i) | |
} | |
let i = 5 | |
if case 0..<10 = i { | |
print("\(i) within range") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment