Fix maputils

This commit is contained in:
Melody Becker 2024-07-30 16:58:10 +02:00
parent 83e935df8a
commit 66a118e6ef

View file

@ -1,6 +1,6 @@
package maps package maputils
import "gitlab.com/beckersam/goutils/pkg/sliceutils" import "gitlab.com/mstarongitlab/goutils/sliceutils"
// MapMap applies a given function to every key-value pair of a map. // 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. // The returned map's value type may be different from the type of the inital map's value.
@ -42,7 +42,7 @@ func CompareMap[K, V comparable](a, b map[K]V) bool {
return false return false
} }
// Check if both maps have the same keys // Check if both maps have the same keys
if !sliceutils.CompareUnorderedSlice(KeysFromMap(a), KeysFromMap(b)) { if !sliceutils.CompareUnordered(KeysFromMap(a), KeysFromMap(b)) {
return false return false
} }