I’m trying to understand how pattern matching works “under the hood”, and while i was reading the wikipedia page of “unification” i saw this :
If a solution is required to make both sides of each equation literally equal, the process is called syntactic or free unification, otherwise semantic or equational unification, or E-unification, or unification modulo theory.
If the right side of each equation is closed (no free variables), the problem is called (pattern) matching. The left side (with variables) of each equation is called the pattern.[1]
And i’m not sure to understand the link between unification and pattern matching actually, when it talk about “the right side of each equation”, the equation is : pattern = value
as match value with pattern ->...
in ocaml ?