Documentation ¶
Index ¶
- func Add[T Numeric | ~string](x T, y T) T
- func Compose[A any, B any, C any](f func(arg A) B, g func(arg B) C) func(arg A) C
- func ComposeErr[A any, B any, C any](f func(arg A) (B, error), g func(arg B) (C, error)) func(arg A) (C, error)
- func Div[T Numeric](x T, y T) T
- func DividedBy[A Numeric](quotient A) func(in A) A
- func Identity[T any](arg T) T
- func Ignore[T any](_ T)
- func Mul[T Numeric](x T, y T) T
- func Nop()
- func Panic(reason any) func()
- func Plus[A Numeric | ~string](summand A) func(in A) A
- func Sub[T Numeric](x T, y T) T
- func Times[A Numeric](factor A) func(in A) A
- type Numeric
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComposeErr ¶
Types ¶
type Numeric ¶
type Numeric interface { constraints.Complex | constraints.Integer | constraints.Float }
Click to show internal directories.
Click to hide internal directories.