mapex

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Keys

func Keys[K comparable, V any](m map[K]V) (keys []K)

func SortKeys added in v0.0.6

func SortKeys[K constraints.Ordered, V any](m map[K]V) (keys []K)

func SortValues added in v0.0.6

func SortValues[K comparable, V constraints.Ordered](m map[K]V) (values []V)

func Values

func Values[K comparable, V any](m map[K]V) (values []V)

Types

type Map

type Map[K comparable, V any] map[K]V

func (Map[K, V]) Keys

func (m Map[K, V]) Keys() (keys []K)

func (Map[K, V]) Values

func (m Map[K, V]) Values() (values []V)

Jump to

Keyboard shortcuts

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