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.
Click to show internal directories.
Click to hide internal directories.