maps

package
v1.1.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL