title: Ruby: How to find difference between 2 arrays, order matters
body: <p>I'm trying to count the differences between two arrays where the order DOES matter. For example:</p>
  
  <pre><code>array_one = ["A", "B", "C"]
  array_two = ["B", "C", "A"]
  </code></pre>
  
  <p>This would yield 3 differences because:</p>
  
  <pre><code>array_one[0] != array_two[0]
  array_one[1] != array_two[1]
  array_one[2] != array_two[2]
  </code></pre>
  
  <p>Another example:</p>
  
  <pre><code>array_one = ["Z", "X", "Y"]
  array_two = ["Z", "W", "Y"]
  </code></pre>
  
  <p>This would yield 1 because:</p>
  
  <pre><code>array_one[0] == array_two[0]
  array_one[1] != array_two[1]
  array_one[2] == array_two[2]
  </code></pre>
  
  <p>Any suggestions greatly appreciated.</p>