Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Curry

Pre-specify a procedures named parameters, returning a new procedure.


Description

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)

functional

Curry, Compose, and other higher-order functions

v0.6
GPL (>= 2)
Authors
Peter Danenberg <pcd@roxygen.org>
Initial release
2014-07-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.