Curry: Pre-specify a procedures named parameters, returning a new...

Description Usage Arguments Value Examples

View source: R/functional.R

Description

Thanks, Byron Ellis. https://stat.ethz.ch/pipermail/r-devel/2007-November/047318.html

Usage

1
Curry(FUN, ...)

Arguments

FUN

the function to be curried

...

the determining parameters

Value

A new function partially determined

Examples

1
2
double <- Curry(`*`, e1=2)
stopifnot(double(4) == 8)

functional documentation built on May 29, 2017, 9:21 a.m.