title: F#: Two Dimensional Array - Generate all possible binary combinations
body: <p>What approach would you use to generate the set of NxN matrices containing only zeros and ones which represents all possible distinct combinations?</p>
  
  <pre><code>let matrix Array2D.init N N (fun x y -&gt; something)
  </code></pre>
  
  <p>If you don't know F# then pseudocode will be a contribution aswell. </p>
  
  <p>So what I want is a list/array of all the distinct matrix combinations</p>