Documentation ¶
Index ¶
- func Each[K comparable, V any](m map[K]V, fn func(K, V))
- func EachErr[K comparable, V any](m map[K]V, fn func(K, V) error) error
- func Get[K comparable, V any](m map[K]V, k K) optioner.Option[V]
- func Has[K comparable, V any](m map[K]V, k K) bool
- func Items[K comparable, V any](m map[K]V) optioner.Option[[]Item[K, V]]
- func ItemsFiltered[K comparable, V any](m map[K]V, fn func(K, V) bool) optioner.Option[[]Item[K, V]]
- func Keys[K comparable, V any](m map[K]V) optioner.Option[[]K]
- func KeysFiltered[K comparable, V any](m map[K]V, fn func(K) bool) optioner.Option[[]K]
- func Values[K comparable, V any](m map[K]V) optioner.Option[[]V]
- func ValuesFiltered[K comparable, V any](m map[K]V, fn func(V) bool) optioner.Option[[]V]
- type Item
- type Mapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Each ¶
func Each[K comparable, V any](m map[K]V, fn func(K, V))
func Has ¶
func Has[K comparable, V any](m map[K]V, k K) bool
func ItemsFiltered ¶
func KeysFiltered ¶
func KeysFiltered[K comparable, V any](m map[K]V, fn func(K) bool) optioner.Option[[]K]
func ValuesFiltered ¶
func ValuesFiltered[K comparable, V any](m map[K]V, fn func(V) bool) optioner.Option[[]V]
Types ¶
Click to show internal directories.
Click to hide internal directories.