New answers tagged

4

Beside following the good advice Rohit Namjoshi has given in a comment, you need to become aware that pattern matching against Plusand Times is tricky because these operators have attributes (special rules) that cause strange things to happen when the patterns containing them are evaluated. Consider the following: You don't want MatchQ[Plus[a, b, foo[x, y]], ...


Top 50 recent answers are included