title: Merge two properties together in ramda.js
body: <p>I was wondering if there is a better way to do this:</p>
  
  <pre><code>var books = [
     { 
        title: 'Some Book',
        author: {
           firstName: 'John',
           lastName: 'Doe'
        }
     },
     {
        title: 'Another Book',
        author: {
           firstName: 'Jane',
           lastName: 'Smith'
        }
     }
  ];
  
  var getNames = R.pipe(
     R.prop('author'),
     R.props(['firstName', 'lastName']),
     R.join(' ')
  );
  
  console.log(R.map(getNames, books));
  </code></pre>
  
  <p>So basically, I am trying to get the full names by combining two properties together. This works, but I was wondering if there is a better (shorter) way to do this in <code>Ramda</code>? I went through the documentation, but there are some functions that I don't quite understand the usage of, yet. So that's why I am asking here.. :)</p>
  
  <p>fiddle:
  <a href="https://jsbin.com/jidiwejatu/edit?js,console" rel="nofollow">https://jsbin.com/jidiwejatu/edit?js,console</a></p>
  
  <p>------------------- EDIT -----------------</p>
  
  <p>This is rather a simple example, but if I had to merge properties from different paths, that's what becomes more complicated I think, since I would have to use <code>R.path</code> to get to each property. Am I right?</p>