Created
September 6, 2017 19:19
-
-
Save cgoldsby/91c5961cbda8730bb81835a6d62636c1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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