maps

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

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

func Keys

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

func Range

func Range[K comparable, V any](m map[K]V, fn func(k K, v V) bool) bool

func Values

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

Types

type Entry

type Entry[K comparable, V any] struct {
	Key   K
	Value V
}

func Entries

func Entries[K comparable, V any](m map[K]V) (entries []Entry[K, V])

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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