package maps

import "cuelang.org/go/internal/maps"

Package maps defines various functions useful with maps of any type.

Index

Functions

func Equal

func Equal[M1, M2 ~map[K]V, K, V comparable](m1 M1, m2 M2) bool

Equal reports whether two maps contain the same key/value pairs. Values are compared using ==.

Source Files

maps.go

Version
v0.8.0-alpha.1
Published
Feb 12, 2024
Platform
linux/amd64
Last checked
5 seconds ago

Tools for package owners.