maps

package
v0.412.4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromSlice

func FromSlice[K comparable, V any, T any](slice []T, kv func(el T) (K, V)) map[K]V

func MapValues

func MapValues[X comparable, Y any, Z any](input map[X]Y, transform func(X, Y) Z) map[X]Z

MapValues transforms a map[X]Y to a map[X]Z using the provided transformation function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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