maps

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Keys added in v0.8.0

func Keys[K comparable, V any](m map[K]V) []K

Keys returns the keys of the provided map in unspecified order.

func Values added in v0.8.0

func Values[K comparable, V any](m map[K]V) []V

Values returns the values of the provided map in unspecified order.

Types

type M

type M[K comparable, V any] map[K]V

func Map

func Map[K, Q comparable, V, W any](m M[K, V], f func(K, V) M[Q, W]) M[Q, W]

Map produces a new slice of values by mapping each value in the slice through a transform function.

Jump to

Keyboard shortcuts

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