minmax

package
v1.0.56 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package minmax provides functions for finding the maximum and minimum values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max

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

Max returns the maximum value among the given values. The values must be of a type that implements the cmp.Ordered interface for comparison.

func Min

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

Min returns the minimum value among the given values. The values must be of a type that implements the cmp.Ordered interface for comparison.

Types

This section is empty.

Jump to

Keyboard shortcuts

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