maps

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0, GPL-2.0, GPL-3.0-or-later, + 1 more Imports: 2 Imported by: 0

Documentation

Overview

Package maps implements generic (type-parameterized) utilities for working with simple Go maps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasKey

func HasKey[K comparable, V any](m map[K]V, k K) bool

func HaveAnyKeysInCommon

func HaveAnyKeysInCommon[K comparable, V1, V2 any](a map[K]V1, b map[K]V2) bool

func Keys

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

func SortedKeys

func SortedKeys[K constraints.Ordered, V any](m map[K]V) []K

Types

This section is empty.

Jump to

Keyboard shortcuts

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