Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
Select your favorite languages :
  • Or search :

Idiom #313 Map equality

Set b to true if the maps m and n have the same key/value entries, false otherwise.

import "golang.org/x/exp/maps"
b := maps.Equal(m, n)
b = m == n
b = m == n

New implementation...
< >
programming-idioms.org