title: Find differences between adjacent elements of array
body: <p>I am just wondering if there is a good way (without cycles) to find differences between adjacent elements of array:</p>
  
  <pre><code>[2, 8, 12] -&gt; [6, 4]
  
  a(n) = a(n+1) - a(n)
  </code></pre>