genmap

package
v3.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package genmap provides generic functions for manipulating maps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pick

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

Pick creats a new map based on `m` by selecting entries from `keys`. If a key is in keys, but not map, then it's not included. Map keys and values are copied.

Types

This section is empty.

Jump to

Keyboard shortcuts

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