I found a kernel function which is undocument MatchLocalNameQ
.But I don't know the purpose of it.
a = 1;
b = 1;
MatchLocalNameQ[a, b]
False
a = 1;
b = 1;
MatchLocalNameQ[a, a]
True
But what want to do really this function?It's useful to us?
MatchLocalNameQ[Evaluate@Module[{a},a],a]
which givesTrue
. The second seems to be a "template" for which the local variable has been generated. $\endgroup$MatchLocalNames
, which gives a bit of a hint. $\endgroup$