Skip to content

Instantly share code, notes, and snippets.

@SebastianBoldt
Last active October 16, 2016 09:56
Show Gist options
  • Save SebastianBoldt/76746c9b75a367322ea0369a34c18380 to your computer and use it in GitHub Desktop.
Save SebastianBoldt/76746c9b75a367322ea0369a34c18380 to your computer and use it in GitHub Desktop.
let x: String? = "Hello Optional"
let y: String? = "Hello Optional"
switch (x,y) {
case let (x?,y?): print("Values: \(x) & \(y)")
default: print("Error")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment