Suppose we have a list of variables. We want to apply a constraint over the variables, but the relation of these constraints are or
. How we can do this in Eclipse CLP (prolog)?
We should notice that if the list is short like A is [X, Y, Z]
the trivial solution is A[0] #= 0 or A[1] #= 0 or A[2] #= 0
(if the constraint is equality to zero). Hence, this does not work for a long list.