Documentation
¶
Overview ¶
Package to provide basic mathematical functions to satisfy the exercise requirements of Learning Go, 2nd Edition, Chapter 10.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add[T Number](a, b T) T
Add takes two integers arguments and returns their arithmetic sum. Learn more about addition at: https://www.mathisfun.com/numbers/addition.html
Types ¶
type Number ¶
type Number interface { constraints.Integer | constraints.Float }
Click to show internal directories.
Click to hide internal directories.