Documentation ¶
Index ¶
- func Keys[K comparable, V any](m map[K]V) []K
- func Transform[K1 comparable, V1 any, K2 comparable, V2 any](m map[K1]V1, transformFn func(K1, V1) (K2, V2)) map[K2]V2
- func TransformKeys[K comparable, V any, T comparable](m map[K]V, transformFn func(K) T) map[T]V
- func TransformValues[K comparable, V any, T comparable](m map[K]V, transformFn func(V) T) map[K]T
- func Values[K comparable, V any](m map[K]V) []V
- func ValuesFlattened[K comparable, V any](m map[K][]V) []V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Keys ¶
func Keys[K comparable, V any](m map[K]V) []K
func Transform ¶
func Transform[K1 comparable, V1 any, K2 comparable, V2 any](m map[K1]V1, transformFn func(K1, V1) (K2, V2)) map[K2]V2
func TransformKeys ¶
func TransformKeys[K comparable, V any, T comparable](m map[K]V, transformFn func(K) T) map[T]V
func TransformValues ¶
func TransformValues[K comparable, V any, T comparable](m map[K]V, transformFn func(V) T) map[K]T
func Values ¶
func Values[K comparable, V any](m map[K]V) []V
func ValuesFlattened ¶
func ValuesFlattened[K comparable, V any](m map[K][]V) []V
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.