Created
March 27, 2022 19:05
-
-
Save fogfish/7a25dacf18d4b1747e9a58d87b72aa25 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
// ExampleType product type is product of primitive types int × string | |
type ExampleType struct { | |
A int | |
B string | |
} | |
// Instances of Eq type trait for primitive types | |
var ( | |
Int Eq[int] = FromEq[int](equal[int]) | |
String Eq[string] = FromEq[string](equal[string]) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment