Skip to content

Instantly share code, notes, and snippets.

@fogfish
Created March 27, 2022 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fogfish/1b6e87b2c665081c0023f93e868bca0f to your computer and use it in GitHub Desktop.
Save fogfish/1b6e87b2c665081c0023f93e868bca0f to your computer and use it in GitHub Desktop.
/*
Eq : T ⟼ T ⟼ bool
Each trait implements mapping pair of value to bool category using own
equality rules
*/
type Eq [T any] interface {
Equal(T, T) bool
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment