Documentation
¶
Index ¶
- func Concat[K comparable, V any](maps ...map[K]V) map[K]V
- func Equals[K cmp.Ordered, V cmp.Ordered](m1 map[K]V, m2 map[K]V) bool
- func HasKey[K comparable, V any](m map[K]V, key K) bool
- func HasOneKeyType[K comparable, V any](m map[K]V) bool
- func Keys[K comparable, V any](m map[K]V) []K
- func SortByKeys[K cmp.Ordered, V any](m map[K]V) map[K]V
- func SortedKeys[K cmp.Ordered, V any](m map[K]V) []K
- func SortedValues[K comparable, V cmp.Ordered](m map[K]V) []V
- func Values[K comparable, V any](m map[K]V) []V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasKey ¶
func HasKey[K comparable, V any](m map[K]V, key K) bool
Return true if the key given is in the map given. Else, false.
func HasOneKeyType ¶
func HasOneKeyType[K comparable, V any](m map[K]V) bool
func SortByKeys ¶
Sort the map given by its keys
func SortedKeys ¶
Return a sorted array of keys from the map given
func SortedValues ¶
func SortedValues[K comparable, V cmp.Ordered](m map[K]V) []V
Return a sorted array of values from the map given
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.