ordered

package
v0.0.0-...-89068a9 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0, Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max

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

Min returns the larger of the given items.

func MaxSlice

func MaxSlice[T constraints.Ordered](slice []T) T

MaxSlice returns the largest element in a slice-like container.

func Min

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

Min returns the smaller of the given items.

func MinSlice

func MinSlice[T constraints.Ordered](slice []T) T

MinSlice returns the smallest element in a slice-like container.

Types

This section is empty.

Jump to

Keyboard shortcuts

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