maps

Package maps defines various functions useful with maps of any type.

Index

Functions

func Keys

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

Keys returns all keys in m.

func Values

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

Values returns all values in m.


© Matthias Hochgatterer – MastodonGithubRésumé