maps

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone added in v0.4.0

func Clone[K comparable, V any, M ~map[K]V](m M) M

func Equal added in v0.4.0

func Equal[K, V comparable, M1 ~map[K]V, M2 ~map[K]V](lhs M1, rhs M2) bool

func EqualBy added in v0.4.0

func EqualBy[K comparable, V1, V2 any, M1 ~map[K]V1, M2 ~map[K]V2](lhs M1, rhs M2, equal func(V1, V2) bool) bool

func Keys added in v0.4.0

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

func Values added in v0.4.0

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

Types

type MapEntry added in v0.4.0

type MapEntry[K, V any] struct {
	// contains filtered or unexported fields
}

func Entries added in v0.4.0

func Entries[K comparable, V any, M ~map[K]V](m M) []MapEntry[K, V]

Entries returns a [vector.ImmutableVector] over the entries of the map.

Jump to

Keyboard shortcuts

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