Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Max ¶
func Max[T constraints.Ordered](a, b T) T
Max provides a generic method for getting the greater of two input values. In the event that the inputs are equal, the second input will be returned.
func Min ¶
func Min[T constraints.Ordered](a, b T) T
Min provides a generic method for getting the lesser of two input values. In the event that the inputs are equal, the second input will be returned.
func Reverse ¶
func Reverse[T constraints.Ordered](input []T) []T
Reverse returns a new slice containing the elements of the input slice in reverse order.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.