Created
June 29, 2016 10:06
-
-
Save daehn/73b6a08b062c81d8c74467c131f78b55 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
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