Examples
Basic Examples (1)
Find the most general unifier for terms:
Scope (5)
Unifying already equal terms returns an empty unifier:
Trying to unify non-unifiable terms returns a Failure:
Only a single unifier is found, but in general it's not unique (e.g. <|y_⧴x_|>is also valid here):
MostGeneralUnifier holds its arguments:
Unify heads:
Applications (1)
Given multiple expressions, unifier makes them equal by substitution using ReplaceAll:
Possible Issues (2)
Different pattern variables with the same name are still considered distinct:
PatternTest and Condition are treated verbatim:
Related Links
Version History
-
1.0.1
– 19 March 2025
-
1.0.0
– 22 April 2022