Skip to content

Instantly share code, notes, and snippets.

@SebastianBoldt
Last active October 16, 2016 09:52
Show Gist options
  • Save SebastianBoldt/61f575d41b2a5726c61937661b374723 to your computer and use it in GitHub Desktop.
Save SebastianBoldt/61f575d41b2a5726c61937661b374723 to your computer and use it in GitHub Desktop.
let x: String? = "Hello Optional"
switch x {
case .some(let value): print("Optional has an value of \(value)")
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