Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Ruby

Idiom #313 Test for map equality

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

b = m == n
#include <map>
b = m == n;

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