Skip to content

Instantly share code, notes, and snippets.

@oisdk
Created November 22, 2015 17:51
Show Gist options
  • Save oisdk/cc03bf185eaed5f0cfaf to your computer and use it in GitHub Desktop.
Save oisdk/cc03bf185eaed5f0cfaf to your computer and use it in GitHub Desktop.
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