Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clone ¶ added in v0.16.0
func Clone[M ~map[K]V, K comparable, V any](m M) M
Clone returns a new map with the same entries as m.
func Group ¶
func Group[K comparable, V any](s []V, key func(V) K) map[K][]V
Group returns a new non-nil map containing the elements of s grouped by the keys returned from the key func.
func SameKeys ¶
func SameKeys[K comparable, V1, V2 any](x map[K]V1, y map[K]V2) bool
SameKeys reports whether x and y have equal sets of keys.
func Values ¶ added in v0.16.0
func Values[M ~map[K]V, K comparable, V any](m M) []V
Values returns the values of the map M.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.