MAP_EQUAL
Description
The MAP_EQUAL function is used to compare two Map data structures (hereinafter referred to as maps) to determine if they are exactly the same. If the key-value pairs of the two maps are completely consistent, the function returns true; otherwise, it returns false.
Syntax
Parameter Description
- m1, m2: The two maps that need to be compared.
Return Result
Returns a boolean value. If the two maps are exactly the same, it returns true; otherwise, it returns false.
Usage Example
- Compare two identical maps:
- Compare two different maps (key-value pairs are inconsistent):
- Compare two different maps (keys are inconsistent):