Map¶
func Map[K comparable, V any, R any](mapInstance map[K]V, mapper func(key K, value V) R) map[K]R
Map transforms map values using a mapper function, returning a new map with transformed values while preserving keys.
func Map[K comparable, V any, R any](mapInstance map[K]V, mapper func(key K, value V) R) map[K]R
Map transforms map values using a mapper function, returning a new map with transformed values while preserving keys.