Skip to content

Instantly share code, notes, and snippets.

@cgoldsby
Created September 6, 2017 19:19
Show Gist options
  • Save cgoldsby/91c5961cbda8730bb81835a6d62636c1 to your computer and use it in GitHub Desktop.
Save cgoldsby/91c5961cbda8730bb81835a6d62636c1 to your computer and use it in GitHub Desktop.
func myFunction() {
return _ = functionReturningString()
}
func functionReturningString() -> String {
return "Nothing to see here"
}
// Even works for a guard
func myFunction(value: Any?) {
guard let _ = value else { return _ = functionReturningString() }
print("All done")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment