mapext

package
v5.29.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0, MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map

func Map[K comparable, V any, U any](m map[K]V, init U, fn func(accum U, key K, value V) U) U

Map allows mapping of a map[K]V -> U.

func Retain

func Retain[K comparable, V any](m map[K]V, fn func(key K, value V) bool)

Retain retains only the elements specified by the function and removes others.

Types

This section is empty.

Jump to

Keyboard shortcuts

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