<< keyHash Dictionaries keys >>

keyMatch


Check whether two dictionary keys are same.


Syntax


tf = keyMatch(A, B)

Input argument


A

array

B

array

Output argument


tf

logical: true or false.

Description


tf = keyMatch(A, B) returns true if arrays A and B have identical classes, properties, dimensions, and values, and returns false otherwise.

For custom classes, overloading keyMatch may be necessary to ensure accurate equivalence.

Example


A = {'a', 'b', 1};
B = {1, 'a', 'b'};
C = A;
D = B;
keyMatch(A, B)
keyMatch(A, C)
keyMatch(B, D)

See also


keyHash.

History


Version Description
1.5.0 initial version

Author


Allan CORNET

<< keyHash Dictionaries keys >>