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.
Click to show internal directories.
Click to hide internal directories.