numeric

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max

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

Max returns the larger of the two provided values. It uses generic type T, which must satisfy the ordered constraints (e.g., integers, floats).

func Min

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

Min returns the smaller of the two provided values. It uses generic type T, which must satisfy the ordered constraints (e.g., integers, floats).

Types

This section is empty.

Jump to

Keyboard shortcuts

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