minmax

package
v1.0.108 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 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