title: Convert array of objects to one Object using ramda.js
body: <p>I have an array:</p>
  
  <pre><code>var a = [
      {id: 1, val: 'a'},
      {id: 2, val: 'b'},
      {id: 3, val: 'c'},
      {id: 4, val: 'd'},
  ]
  </code></pre>
  
  <p>And I want to get transform it to:</p>
  
  <pre><code>var b = {
      1: 'a',
      2: 'b',
      3: 'c',
      4: 'd',
  }
  </code></pre>
  
  <p>Actually I'm using pure js:</p>
  
  <pre><code>var b = a.reduce(
      (ac, pr) =&gt; ({
        ...ac,
        [pr.id]: pr.val,
      }),
      {}
    );
  </code></pre>
  
  <p>But maybe Ramda.js have something special for that purpose?</p>