<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">| We usually do<br>
|<br>
| Rcpp::List ret = Rcpp::List::create(Rcpp::Named("pa", pa),<br>
| Rcpp::Named("w", w);<br>
| Rcpp::Named("xa", xa));<br>
| return ret;<br>
|<br>
| to avoid re-allocation. But that is minuscule, and your code is arguably<br>
| as easy or easier to read :)<br>
|<br>
|<br>
| Did I understand correctly that your proposal is to create return object all in<br>
| one spot to avoid changing it as I did three times?<br>
<br>
</div>Yup!</blockquote><div><br></div><div>Just a note. I see a little speedup using your return suggestion so once again for this!</div><div><br></div><div>gg</div><div> </div></div>