minmax

package
v0.0.0-...-b5b2f04 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Constrain

func Constrain[T cmp.Ordered](value, min, max T) T

Constrain the value between the given minimum and maximum.

func Max

func Max[T cmp.Ordered](nbrs ...T) T

Max returns the biggest integer.

func Min

func Min[T cmp.Ordered](nbrs ...T) T

Min returns the smallest integer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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