In a case like this:
f[a_] :=a;= a;
f[{a_, b_}] :=a;= a;
I'm wondering whether I should expect f[{2, 3}]
to return {2,3}
or 2
, because:
MatchQ[{2, 3}, a_] == MatchQ[{2, 3}, {a_, b_}]
Is the behaviour in this situation defined, or should I avoid this at all costs?