zx

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All[K comparable, V any](m map[K]V, f func(K, V) bool) bool

func Any

func Any[K comparable, V any](m map[K]V, f func(K, V) bool) bool

func Count

func Count[K comparable, V any](m map[K]V, f func(K, V) bool) int

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.

Jump to

Keyboard shortcuts

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