Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromSlice ¶
func FromSlice[K comparable, V any, T any](slice []T, kv func(el T) (K, V)) map[K]V
func MapValues ¶
func MapValues[X comparable, Y any, Z any](input map[X]Y, transform func(X, Y) Z) map[X]Z
MapValues transforms a map[X]Y to a map[X]Z using the provided transformation function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.