title: Create JavaScript object from value with multiple operations using Ramda
body: <p>How would I best create this function in <a href="http://ramdajs.com/" rel="nofollow">Ramda</a>?</p>
  
  <pre><code>function get_parts (buffer) {
    return {
      a: buffer.readInt16LE(0),
      b: buffer.slice(2, 4)
    }
  }
  
  get_parts(new Buffer('abcd'))
  </code></pre>
  
  <p>The aim is to maintain the function call style and specify (and join) the operations in the simplest way possible.</p>