functional (version 0.6)

Curry: 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

Run this code
double <- Curry(`*`, e1=2)
stopifnot(double(4) == 8)

Run the code above in your browser using DataCamp Workspace