Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Medianish ¶
Medianish returns the median (for odd-length slices), or the first of the two middle entries (for even-length slices).
func MinMax ¶
MinMax returns the minimum and maximum of a slice. If the slice has length 0, it returns the zero value for both.
func ToSet ¶
func ToSet[K comparable](s []K) map[K]bool
ToSet converts a slice into a map-of-bool where each element in the slice maps to true.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.