Last active
February 20, 2018 09:49
-
-
Save takashi1975/db31969cb4c7573f7192abeab2d62bf4 to your computer and use it in GitHub Desktop.
Swift4 クロージャーの宣言?に名前をつけたい
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
/** | |
* https://stackoverflow.com/questions/24077428/how-do-i-declare-typedef-in-swift | |
*/ | |
//やりたかったこと | |
typealias FunctionClosure = (_ value: Int) -> Void | |
fileprivate var _closure: FunctionClosure? = nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://qiita.com/shimesaba/items/4d19a7e4c67caca73603