Skip to content

Instantly share code, notes, and snippets.

@andreaslydemann
Last active October 23, 2018 06:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save andreaslydemann/da93b208f8793414f0c5d6858f06593b to your computer and use it in GitHub Desktop.
let myOptional: Int? = 10
guard let myInt = myOptional else {
print("myInt has no value.")
}
print("myInt has a value of \(myInt).")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment