Skip to content

Instantly share code, notes, and snippets.

@daehn
Created June 29, 2016 10:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daehn/73b6a08b062c81d8c74467c131f78b55 to your computer and use it in GitHub Desktop.
Save daehn/73b6a08b062c81d8c74467c131f78b55 to your computer and use it in GitHub Desktop.
extension Equatable {
func oneOf(other: Self...) -> Bool {
return other.contains(self)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment