Created
October 25, 2017 21:50
-
-
Save rizumita/d92d38e688695bb07c7640f2dd2cdfa5 to your computer and use it in GitHub Desktop.
This file contains 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 foo(_ string: String) -> (String) -> String { | |
return { s in | |
let result = string + " " + s | |
print(result) | |
return result | |
} | |
} | |
let f: (String) -> String = foo("bar") | |
f("baz") // result of call is unused が発生 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment