Created
November 9, 2015 03:52
-
-
Save eldesperado/a8c81ee0115c21e39092 to your computer and use it in GitHub Desktop.
Conforming types may be used in switch statements and as the element of a Set.
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 <# extendedType #> : Hashable { | |
var hashValue: Int { return <# hashValue #> } | |
} | |
func ==(lhs: <# extendedType #>, rhs: <# extendedType #>) -> Bool { | |
return <# comparator #> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment