The list2exp command is the inverse of exp2list. It
takes two arguments; a list [val1, val2, ...] of values and a variable name
var.
list2exp returns the boolean expression ((var = val1)
or (var = val2) or ...).
Input:
Output:
Input:
Output:
Alternatively, each element of the list could be a list with n values, followed by a list of n variables. The output would be boolean expressions of the form ((var1 = val1) and (var2 = val2) ...) for each list of n values, combined with ors. Input:
Output: