math

package
v0.0.0-...-c6c3bcc Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs[T constraints.Signed](n T) T

Abs returns the absolute (unsigned) value of a possibly signed value.

func Max

func Max[T constraints.Ordered](vs ...T) (max T)

Max returns the biggest item from a list of items.

func Min

func Min[T constraints.Ordered](vs ...T) (min T)

Min returns the smallest item from a list of items.

func MinMax

func MinMax[T constraints.Ordered](vs ...T) (min, max T)

MinMax returns the smallest and biggest element from a list of items.

Types

This section is empty.

Jump to

Keyboard shortcuts

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