Skip to content

Instantly share code, notes, and snippets.

@thepearl
Created January 14, 2021 15:08
Show Gist options
  • Save thepearl/1cee3cb6173d467f6d124ef86417d5a6 to your computer and use it in GitHub Desktop.
Save thepearl/1cee3cb6173d467f6d124ef86417d5a6 to your computer and use it in GitHub Desktop.
Hash function
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