Documentation
¶
Index ¶
- func Add[T Number](left T) func(T) T
- func Inc[T Number](value T) T
- func MagmaSub[A Number]() M.Magma[A]
- func Max[A C.Ordered](a, b A) A
- func Min[A C.Ordered](a, b A) A
- func MonoidSum[A Number]() M.Monoid[A]
- func Mul[T Number](coeff T) func(T) T
- func SemigroupSum[A Number]() S.Semigroup[A]
- type Number
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶ added in v1.0.7
func Add[T Number](left T) func(T) T
Add is a curried function used to add two numbers
func Max ¶ added in v1.0.11
Max takes the maximum of two values. If they are considered equal, the first argument is chosen
func Min ¶ added in v1.0.11
Min takes the minimum of two values. If they are considered equal, the first argument is chosen
func Mul ¶ added in v1.0.18
func Mul[T Number](coeff T) func(T) T
Mul is a curried function used to add two numbers
func SemigroupSum ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.