title: Haskell repa --- mapping with indices
body: <p>Imagine I want to map a function over an array, but the function has a type not just of
      <code>a -&gt; b</code>
  but
      <code>a -&gt; Int -&gt; b</code>
  i.e. the function also takes an index. How do I do that?</p>