Created
November 22, 2015 17:51
-
-
Save oisdk/cc03bf185eaed5f0cfaf 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 myFunc(i: Int, @noescape f: Int -> Bool) -> Bool { | |
return f(i) | |
} | |
func myFunc(i: Int) -> Bool { | |
return myFunc(i) { n in n % 2 == 0 } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment