Documentation
¶
Overview ¶
Package adder adds together two integers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add[T Number](a, b T) T
Add adds together two Number returning their sum
More information on adding can be found at [Mathisfun]. [Mathisfun]: 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.