title: Convert array of digits to a binary number
body: <p>How could I convert array of digits to a binary number? For instance:</p>
  
  <pre><code>a=[1 0 1 0 1 0]
  </code></pre>
  
  <p>I would like to convert to a binary number</p>
  
  <p><code>b=101010</code></p>
  
  <p>Is it possible to do without loops?</p>