Documentation
¶
Overview ¶
Package xmaps defines various functions useful with maps of any type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GroupFunc ¶
func GroupFunc[K comparable, Slice ~[]V, V any](aa Slice, f func(V) K) map[K]Slice
GroupFunc groups slice elements into a map of slices using a key function.
func SetFunc ¶
func SetFunc[K comparable, Slice ~[]V, V any](aa Slice, f func(V) K) map[K]struct{}
SetFunc creates a set (as a map to empty structs) from a slice using a key function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.