Class Unifier.Constraint

java.lang.Object
net.hydromatic.morel.util.Unifier.Constraint
Enclosing class:
Unifier

public static final class Unifier.Constraint extends Object
Constraint arising from a call to an overloaded function.

Consider a call to an overloaded function with two overloads c -> d and e -> f. If the argument (a) unifies to c then the result (b) is d; if the argument unifies to e then the result is f.

This is represented as the following constraint:


 {arg: a, result: b, argResults [{c, d}, {e, f}]}