order

package
v0.0.0-...-4486ec2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clamp

func Clamp[T Ordered[T]](min, value, max T) T

func CompareInt

func CompareInt(a, b int) int

func CompareUInt

func CompareUInt(a, b uint) int

func Max

func Max[T Ordered[T]](x T, ys ...T) T

func Min

func Min[T Ordered[T]](x T, ys ...T) T

Types

type Ordered

type Ordered[T any] interface {
	Compare(T) int
}

Jump to

Keyboard shortcuts

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