Skip to content

Instantly share code, notes, and snippets.

@Cananito
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cananito/51ba38a0881f185f68fc to your computer and use it in GitHub Desktop.
Save Cananito/51ba38a0881f185f68fc to your computer and use it in GitHub Desktop.
Functional name of this?
func findCondition(condition: (T) -> Bool) -> Bool {
for element in self {
if condition(element) {
return true
}
}
return false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment