[R] Continuation-parsing / trampoline / infinite recursion problem

Thomas Mailund mailund at birc.au.dk
Wed Aug 10 18:53:29 CEST 2016


> On 10 Aug 2016, at 13:56, Thomas Mailund <mailund at birc.au.dk> wrote:
> 
> make_thunk <- function(f, ...) f(...)  

Doh!  It is of course this one:

make_thunk <- function(f, ...) function() f(…)

It just binds a function call into a thunk so I can delay its evaluation.

Sorry
	Thomas





More information about the R-help mailing list