We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9288f7c commit d9bba7eCopy full SHA for d9bba7e
src/matchers.jl
@@ -152,6 +152,7 @@ function term_matcher_constructor(term, acSets)
152
function commutative_term_matcher(success, data, bindings)
153
!islist(data) && return nothing # if data is not a list, return nothing
154
!iscall(car(data)) && return nothing # if first element is not a call, return nothing
155
+ operation(term) !== operation(car(data)) && return nothing # if the operation of data is not the correct one, don't even try
156
157
T = symtype(car(data))
158
f = operation(car(data))
0 commit comments