maps

package
v0.0.0-...-b7aacc1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter[T1 comparable, T2 any](m map[T1]T2, predicate func(key T1, value T2) bool) map[T1]T2

Filter returns a new map that only contains elements that match the predicate

func Has

func Has[T1 comparable, T2 any](m map[T1]T2, key T1) bool

Has returns true if the given key is included in the map

Types

This section is empty.

Jump to

Keyboard shortcuts

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