Created
January 9, 2022 14:05
-
-
Save percybolmer/99b1f2ef013bfbc65a5dd44cb5e3f05a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // We define the Type parameter V, which is a int | |
| // We also say that function parameter a and b has the data type of V | |
| // We then make the function return V | |
| func Subtract[V int](a, b V) V { | |
| return a - b | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment