Dear useR&#39;s,<br><br>After I found Rcpp a few days ago, I&#39;ve been very excited collecting documents for learning. But still I find myself understand little.<br>Here&#39;s a question I want you to help me with.<br><br>
In page 17 of Dirk and Romain&#39;s slides from part2 of the Apr 28 Rcpp workshop (here&#39;s a link: <a href="http://dirk.eddelbuettel.com/papers/rcpp_workshop_part_2_details.pdf">http://dirk.eddelbuettel.com/papers/rcpp_workshop_part_2_details.pdf</a>), I can&#39;t figure out why the two examples behave differently.<br>
And also, why are people using 1L:3L? What not just 1:3?<br><br>Maybe I am asking silly question? But please do help me. I couldn&#39;t find an answer on google.<br>Thank you.<br><br>Best,<br>Zhongyi<br><br>