Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsSigned ¶
func AbsSigned[T constraints.Signed](val T) T
AbsSigned returns the absolute value of a signed integer value.
func CompareOrdered ¶
func CompareOrdered[T constraints.Ordered](lhs, rhs T) int
CompareOrdered compares two values satisfying constraints.Ordered and return a value less than, equal to, or greater than zero if lhs is found, respectively, to be less than, to match, or be greater than rhs.
Types ¶
type Comparator ¶
Compare two items and return a value less than, equal to, or greater than zero if lhs is found, respectively, to be less than, to match, or be greater than rhs.
Click to show internal directories.
Click to hide internal directories.