Documentation ¶
Index ¶
- func ForEach[M ~map[K]V, K comparable, V any](m M, handle func(K, V))
- func ForEachKey[M ~map[K]V, K comparable, V any](m M, handle func(v K))
- func ForEachValue[M ~map[K]V, K comparable, V any](m M, handle func(v V))
- func Keys[M ~map[K]V, K comparable, V any](maps ...M) []K
- func Map[M ~map[K]V, K comparable, V, T any](m M, subValue func(K, V) T) []T
- func MapKey[M ~map[K]V, K comparable, V, T any](m M, subValue func(K) T) []T
- func MapValue[M ~map[K]V, K comparable, V, T any](m M, subValue func(V) T) []T
- func Merge[M ~map[K]V, K comparable, V any](maps ...M) M
- func Values[M ~map[K]V, K comparable, V any](maps ...M) []V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForEach ¶
func ForEach[M ~map[K]V, K comparable, V any](m M, handle func(K, V))
func ForEachKey ¶ added in v1.5.1
func ForEachKey[M ~map[K]V, K comparable, V any](m M, handle func(v K))
func ForEachValue ¶
func ForEachValue[M ~map[K]V, K comparable, V any](m M, handle func(v V))
func Keys ¶ added in v1.5.1
func Keys[M ~map[K]V, K comparable, V any](maps ...M) []K
func Map ¶ added in v1.5.1
func Map[M ~map[K]V, K comparable, V, T any](m M, subValue func(K, V) T) []T
func MapKey ¶ added in v1.5.1
func MapKey[M ~map[K]V, K comparable, V, T any](m M, subValue func(K) T) []T
func MapValue ¶ added in v1.5.1
func MapValue[M ~map[K]V, K comparable, V, T any](m M, subValue func(V) T) []T
func Merge ¶ added in v1.5.1
func Merge[M ~map[K]V, K comparable, V any](maps ...M) M
func Values ¶ added in v1.5.1
func Values[M ~map[K]V, K comparable, V any](maps ...M) []V
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.