title: How to assign from a function with multiple outputs?
body: <p>Is there a way to output e.g. 2 objects without using <code>list()</code>?</p>
  
  <pre><code>my.fun=function(vector, index)
         {
         a=fun.a(vector, index)
         b=fun.b(vector, index)
         output=list(a,b)
         }
  </code></pre>
  
  <p>Or to output 2 lists of objects? Considering that I could also have:</p>
  
  <pre><code>       c=fun.a(vector, index)
         d=fun.b(vector, index)
  </code></pre>
  
  <p>And wanted <code>list(a,b)</code> and another <code>list(c,d)</code> for the same function.</p>
  
  <p>This is just a small example for what I am looking for, my function is applied to large objects and I export them as a list, however I would like to export also an intermidiate calculation. One option would be to merge all in the same list, but I would like to know if there is another solution to this.</p>