Created
March 27, 2022 19:16
-
-
Save fogfish/502a7ea178b13f8d7f8e0cb3864f7470 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
/* | |
Seq defines fundamental general purpose sequence | |
*/ | |
type Seq[S any, T any] interface { | |
Head(S) *T | |
Tail(S) S | |
IsVoid(S) bool | |
} | |
/* | |
Eq : T ⟼ T ⟼ bool | |
Each type implements own equality, mapping pair of value to bool category | |
*/ | |
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