gmap

package
v0.27.7 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: AGPL-3.0, AGPL-3.0-only Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Has added in v0.23.2

func Has[M ~map[K]V, K comparable, V any](m M, key K) bool

func Keys

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

Keys return []key of map, random ordered.

func Map added in v0.27.6

func Map[S ~map[SK]SV, SK comparable, SV any, F ~func(SK, SV) (DK, DV), DK comparable, DV any](src S, fn F) map[DK]DV

func Merge added in v0.27.6

func Merge[M1 ~map[K]V, M2 ~map[K]V, K comparable, V any](dst M1, src M2) M1

func Values

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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