Re: [Rd] confusion about evaluation.

2008-07-20 Thread Prof Brian Ripley
On Sun, 20 Jul 2008, James Bullard wrote: Hi All, I am confused about the following code. I thought that the problem stemmed from lazy evaluation and the fact that 'i' is never evaluated within the first lapply. However, I am then confused as to why it gets bound to the final element of the la

[Rd] confusion about evaluation.

2008-07-20 Thread James Bullard
Hi All, I am confused about the following code. I thought that the problem stemmed from lazy evaluation and the fact that 'i' is never evaluated within the first lapply. However, I am then confused as to why it gets bound to the final element of the lapply. The environments of the returned