Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Keys ¶
func Keys[K comparable, V any](m map[K]V) []K
func MapValues ¶
func MapValues[K comparable, T, V any](m map[K]T, f func(T) V) map[K]V
MapValues returns a map with vales mapped using the function f.
func Merge ¶
func Merge[K comparable, T any](m, n map[K]T) map[K]T
Merge returns a map containing the keys and values from both maps. If the two maps share a set of keys, the result map will contain only the value of the second map.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.