Curry {functional} | R Documentation |
Pre-specify a procedures named parameters, returning a new procedure.
Description
Thanks, Byron Ellis. https://stat.ethz.ch/pipermail/r-devel/2007-November/047318.html
Usage
Curry(FUN, ...)
Arguments
FUN |
the function to be curried |
... |
the determining parameters |
Value
A new function partially determined
Examples
double <- Curry(`*`, e1=2)
stopifnot(double(4) == 8)
[Package functional version 0.6 Index]