title: how do I process returned Either
body: <p>if a scala function is</p>
  
  <pre><code>def A(): Either[Exception, ArrayBuffer[Int]] = {
  ...
  }
  </code></pre>
  
  <p>what should be the right way to process the returned result?
  <code>val a = A()</code>
  and ?</p>