title: minizinc: find element in arrray
body: <p>I have two arrays(type: int) of different length. How could I find the closest number in array b for each number in array a(the following does not work though probably because of syntax error):</p>
  
  <pre><code>int: m;
  int: n;
  array [1..m] of int: a;
  array [1..n] of int: b;
  array[1..m] of int: results;
  results = [abs(a[i] - b[j])| i in 1..m, j in 1..n];
  solve minimize results;
  output ["Solution: ", show(results)];
  </code></pre>