Created
October 16, 2016 09:50
-
-
Save SebastianBoldt/1210e1129701c49d6e7aa86b03664534 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
// Won't work | |
let x: String? = nil | |
let y: String? = "Hello Optional" | |
switch (x,y) { | |
case .some(let a),.some(let b): print("Optional has an value of \(unwrappedX)") | |
case .none: print("nothing stored inside the enum") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment