Edit: Works now. Also updated module name

This commit is contained in:
Samuel Becker 2022-08-07 19:53:06 +02:00
parent e2e40cb56e
commit 4a35be2949
2 changed files with 3 additions and 1 deletions

2
go.mod
View file

@ -1,3 +1,3 @@
module gitlab.com/beckersamuel9/utils
module gitlab.com/beckersamuel9/goutils
go 1.19

View file

@ -1,5 +1,7 @@
package maps
import "gitlab.com/beckersamuel9/goutils/pkg/sliceutils"
// MapMap applies a given function to every key-value pair of a map.
// The returned map's value type may be different from the type of the inital map's value.
func MapMap[K comparable, V any, R any](dic map[K]V, apply func(K, V) R) map[K]R {