genmath

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 1 Imported by: 1

README

go-genmath

Generic versions of functions from Go's math standard library

Documentation

Overview

Package genmath provides type-agnostic versions of common math functions from the standard `math` package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max

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

Similar to the `math.Max` function, but works with any ordered type.

func Min

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

Similar to the `math.Min` function, but works with any ordered type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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