Closed arihantparsoya closed 7 years ago
That is because all constraints need to be subclasses of Constraint
to provide some additional features. You can wrap your lambda in a CustomConstraint
:
CustomConstraint(lambda x, m: FreeQ(m, x))
I do recommend you to make FreeQ
a Constrait subclass instead though.
Thanks
I tried using Pattern constraint using
lambda
and it is giving errors:Rule
Error: