Re: [Rd] Strange Interaction Between Promises and Closures (PR#13861)

2009-07-30 Thread Peter Dalgaard
kb...@andrew.cmu.edu wrote: Full_Name: Keith Bare Version: 2.7.1 OS: Linux Submission from: (NULL) (128.2.134.48) I observed unexpected behavior attempting to use lapply to vary parameters in generated closures. All the generated closures ran with the last parameter value in the list. Here's

[Rd] Strange Interaction Between Promises and Closures (PR#13861)

2009-07-30 Thread kbare
Full_Name: Keith Bare Version: 2.7.1 OS: Linux Submission from: (NULL) (128.2.134.48) I observed unexpected behavior attempting to use lapply to vary parameters in generated closures. All the generated closures ran with the last parameter value in the list. Here's a simple example: > funcs <-