SameQ
lhs === rhs
evaluates to True if lhs
and rhs
are identical after evaluation, False otherwise.
Attributes[SameQ] := {Protected}
Simple examples
Unlike Equal, SameQ does not forgive differences between Integers and Reals: SameQ considers the arguments of all expressions and subexpressions:Further examples
SameQ does not match patterns:
This functionality is reserved for MatchQ: