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.
Click to show internal directories.
Click to hide internal directories.