1

Why did MatchQ[a + b + c, Plus[x_, y_] is considered true?

In my opinion, it should only consider 2 elements within Plus, such as MatchQ[a + b, Plus[_, _]] true.

Why is this MatchQ[a + b, Plus[_, _]] false?

Where did I get wrong? Please point out.

kile
  • 1,671
  • 5
  • 10

0 Answers0