title: How to map an array of objects to a single object using Ramda
body: <p>I need to turn this:</p>
  
  <p><code>let arr = [{ id: 1, name: 'rod'} , { id: 2, name: 'hey' }]</code></p>
  
  <p>into: </p>
  
  <p><code>mapO = { 1: 'rod', 2: 'hey' }</code></p>
  
  <p>That's what I tried:</p>
  
  <pre><code>let mapIdName = (o) =&gt; {
    let ret = {};
    ret[o["id"]] = o['name'];
    return ret;
  }
  
  let mergeIdNames = R.mergeAll(R.map(mapIdName));
  
  mergeIdNames(o)
  </code></pre>
  
  <p>with the error:</p>
  
  <p><strong><code>mergeIdNames is not a function</code></strong></p>