Created
January 14, 2021 15:08
-
-
Save thepearl/1cee3cb6173d467f6d124ef86417d5a6 to your computer and use it in GitHub Desktop.
Hash function
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
func hash(into hasher: inout Hasher) { | |
hasher.combine(id) | |
} | |
public static func == (lhs: Result, rhs: Result) -> Bool { | |
return lhs.id == rhs.id | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment