Skip to content
Prev 167175 / 398502 Next

Partial function application in R

One other idea.  The proto package also does currying.  If f a method
(i.e. an R function
that takes an object as arg1 then p$f, i.e. the $.proto function,
returns function(...) f(p, ...).
Looking at the code for setDefaults as in my prior response and/or
proto should give
you some ideas.

On Thu, Jan 15, 2009 at 6:43 PM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote: