title: How do I do element-wise comparison of two arrays?
body: <p>I have two arrays:</p>
  
  <pre><code>a = [1,2,3]
  b = [1,4,3]
  </code></pre>
  
  <p>Is there an element-wise comparison method in Ruby such that I could do something like this:</p>
  
  <pre><code>a == b
  </code></pre>
  
  <p>returns:</p>
  
  <p><code>[1,0,1]</code> or something like <code>[TRUE,FALSE,TRUE]</code>.</p>