Documentation
¶
Index ¶
- func Add[T Number](right T) func(T) T
- func Div[T Number](right T) func(T) T
- func Inc[T Number](value T) T
- func MagmaDiv[A Number]() M.Magma[A]
- 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 MonoidProduct[A Number]() M.Monoid[A]
- func MonoidSum[A Number]() M.Monoid[A]
- func Mul[T Number](right T) func(T) T
- func SemigroupProduct[A Number]() S.Semigroup[A]
- func SemigroupSum[A Number]() S.Semigroup[A]
- func Sub[T Number](right T) func(T) T
- type Number
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶ added in v1.0.7
func Add[T Number](right T) func(T) T
Add is a curried function used to add two numbers
func Div ¶ added in v1.0.23
func Div[T Number](right T) func(T) T
Div is a curried function used to divide 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 MonoidProduct ¶ added in v1.0.23
MonoidProduct is the [Monoid] that multiplies elements with a one empty element
func Mul ¶ added in v1.0.18
func Mul[T Number](right T) func(T) T
Mul is a curried function used to multiply two numbers
func SemigroupProduct ¶ added in v1.0.23
func SemigroupSum ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.