maps

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter added in v0.1.20

func Filter[K comparable, V any](m map[K]V, f func(Entry[K, V]) bool) map[K]V

func FromEntries added in v0.1.21

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

func JoinEntries added in v0.1.20

func JoinEntries(m map[string]string, delimiter string) []string

func Keys

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

func MapEntries

func MapEntries[K comparable, V any, O any](m map[K]V, f func(Entry[K, V]) O) []O

func Values

func Values[K comparable, V any](m map[K]V) []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) []Entry[K, V]

func EntryOf added in v0.1.21

func EntryOf[K comparable, V any](key K, value V) Entry[K, V]

Jump to

Keyboard shortcuts

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