mapkeys

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: CC0-1.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlatMap

func FlatMap[M ~map[K]V, K comparable, V any, K1 comparable](m M, optMapper funcs.OptMapper[K, K1]) []K1

FlatMap returns m keys mapped with optMapper; in case optMapper(key) == nil, key is ignored.

func Map

func Map[M ~map[K]V, K comparable, V any, K1 comparable](m M, mapper funcs.Mapper[K, K1]) []K1

Map returns m keys mapped with mapper.

Types

This section is empty.

Jump to

Keyboard shortcuts

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