Last active
December 4, 2016 13:51
-
-
Save surakamy/934fdf59fe189dba23442572b9b78042 to your computer and use it in GitHub Desktop.
Swift generic typealias
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
typealias Closure<I, O> = (I) -> O | |
let lambda: Closure<Int, String> = { intValue in | |
return "\(intValue) * \(intValue) = \(intValue*intValue)" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment