maps

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 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 MapValues

func MapValues[K comparable, T, V any](m map[K]T, f func(T) V) map[K]V

MapValues returns a map with vales mapped using the function f.

func Merge

func Merge[K comparable, T any](m, n map[K]T) map[K]T

Merge returns a map containing the keys and values from both maps. If the two maps share a set of keys, the result map will contain only the value of the second map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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