
genericz - convenience made possible since generics
The main package only contains Min(a ...T) T
and Max(a ...T) T
.
The packages below are intended to contain additions to golang.org/x/exp/slices and golang.org/x/exp/maps and thus won't be the full set that you need. (Over time there will be overlap as we won't remove methods as it would break backwards compatibility.)
mapz

The mapz package contains MinKey(m map[K]V) K
and MaxKey(m map[K]V) K
.
The SyncMap
is a type-safe sync.Map
.
The MutexMap
is a variant of SyncMap
that uses a mutex and a regular map.
slicez

The slicez packages contains Diff, Filter and Unique.