Documentation ¶
Index ¶
- func All[K comparable, V any](m map[K]V, f func(K, V) bool) bool
- func Any[K comparable, V any](m map[K]V, f func(K, V) bool) bool
- func Count[K comparable, V any](m map[K]V, f func(K, V) bool) int
- func Filter[K comparable, V any](m map[K]V, f func(K, V) bool) map[K]V
- func Foreach[K comparable, V any](m map[K]V, f func(K, V) (K, V)) map[K]V
- func FromSlices[K comparable, V any](ks []K, vs []V) map[K]V
- func MapKey[K comparable, V any](m map[K]V, f func(K, V) K) map[K]V
- func MapValue[K comparable, V any](m map[K]V, f func(K, V) V) map[K]V
- func Random[K comparable, V any](m map[K]V) (rk K, rv V)
- func Reduce[K comparable, V any, R any](m map[K]V, f func(K, V, R) R, initial R) R
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Filter ¶
func Filter[K comparable, V any](m map[K]V, f func(K, V) bool) map[K]V
func Foreach ¶
func Foreach[K comparable, V any](m map[K]V, f func(K, V) (K, V)) map[K]V
func FromSlices ¶
func FromSlices[K comparable, V any](ks []K, vs []V) map[K]V
func MapKey ¶
func MapKey[K comparable, V any](m map[K]V, f func(K, V) K) map[K]V
func MapValue ¶
func MapValue[K comparable, V any](m map[K]V, f func(K, V) V) map[K]V
func Random ¶
func Random[K comparable, V any](m map[K]V) (rk K, rv V)
func Reduce ¶
func Reduce[K comparable, V any, R any](m map[K]V, f func(K, V, R) R, initial R) R
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.