How to do defmatch without using matchdeclare? defmatch(anyname, x(i, l)*x(j, k))$ anyname(x(a,b)*x(c, d)) returns false always



try apply(matchdeclare, [tmplist,all]  );

be sure to have the [] there.


dp2 at cise.ufl.edu wrote:

>Thanks Robert,
>There is small glitch I am facing. If I am passing a variable containing
>list to the matchdeclare, the rule doesnt work.
>e.g.
>tmplist: [a, b, c, d, e];
>matchdeclare (tmplist, all);
>.....
>
>
>  
>