function bool : func_par(list of Teams: seq, set of Teams: teams) =
let {
bool : p = exists( [t in teams | t in seq ] );
bool : q = fix(all_equal(seq));
} in
p -> q
;
Note func_var: has var input(seq) and var output
I want to use same or similar function to evaluate hints to variable(v2) in stage2, using hint to a variable(v1) in stage1.
v2 is functionally determined using func_var.
************************************************************
I tried the following example and it worked
function array[1..2] of var int: func(var int: x1, var int: x2)=
[x1,x2];
int: p1 = 1;
int: p2 = 2;
array[1..2] of int: p3 = fix(func(p1,p2));
output["p3: \(p3)\n"];