op

package
v0.0.0-...-4fa68a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add[T Number | ~string](a, b T) T

func Div

func Div[T Number](a, b T) T

func Max

func Max[T cmp.Ordered](a, b T) T

func Min

func Min[T cmp.Ordered](a, b T) T

func Mod

func Mod[T constraints.Integer](a, b T) T

func Mul

func Mul[T Number](a, b T) T

func Sub

func Sub[T Number](a, b T) T

Types

type Number

type Number interface {
	constraints.Complex | constraints.Float | constraints.Integer
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL