Documentation
¶
Overview ¶
Package zmap implements generic functions for maps.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyValue ¶
func KeyValue[M ~map[K]V, K comparable, V any](m M) []struct { K K V V }
KeyValue returns a struct slice with the keys and values.
func KeysOrdered ¶
KeysOrdered returns the sorted keys of the map.
func LongestKey ¶
LongestKey returns the longest key in this map and the unsorted list of all keys.
func Values ¶
func Values[M ~map[K]V, K comparable, V any](m M) []V
Values returns the values of the map.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.