Documentation ¶
Overview ¶
Package filter provides helpers for filtering keys or values of a map
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Keys ¶ added in v0.0.11
func Keys[M ~map[K]V, K comparable, V any](m M, filter func(K) bool) map[K]V
Keys an alias of the map_.FilterKeys
func Values ¶ added in v0.0.11
func Values[M ~map[K]V, K comparable, V any](m M, filter func(V) bool) map[K]V
Values an alias of the map_.FilterValues
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.