Partial application is the process of reducing the arity of a function by fixing one or more arguments, thus creating a new function lacking the fixed arguments. The curry package provides three different ways of performing partial function application by fixing arguments from either end of the argument list (currying and tail currying) or by fixing multiple named arguments (partial application). This package provides this functionality through the %<%, %-<%, and %><% operators which allows for a programming style comparable to modern functional languages. Compared to other implementations such a purrr::partial() the operators in curry composes functions with named arguments, aiding in autocomplete etc.

Documentation

Manual: curry.pdf
Vignette: None available.

Maintainer: Thomas Lin Pedersen <thomasp85 at gmail.com>

Author(s): Thomas Lin Pedersen

Install package and any missing dependencies by running this line in your R console:

install.packages("curry")

Depends
Imports
Suggests
Enhances
Linking to
Reverse
depends
Reverse
imports
Reverse
suggests
Reverse
enhances
Reverse
linking to

Package curry
Materials
URL https://github.com/thomasp85/curry
Task Views
Version 0.1.1
Published 2016-09-28
License GPL (>= 2)
BugReports https://github.com/thomasp85/curry/issues
SystemRequirements
NeedsCompilation no
Citation
CRAN checks curry check results
Package source curry_0.1.1.tar.gz