curry: Partial Function Application with %<%, %-<%, and %><%

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.

Author
Thomas Lin Pedersen
Date of publication
2016-09-28 22:18:23
Maintainer
Thomas Lin Pedersen <thomasp85@gmail.com>
License
GPL (>= 2)
Version
0.1.1
URLs

View on CRAN

Man pages

curry
Curry a function from the start
partial
Apply arguments partially to a function
tail_curry
Curry a function from the end

Files in this package

curry
curry/NAMESPACE
curry/R
curry/R/tail_curry.R
curry/R/utils.R
curry/R/curry.R
curry/R/partial.R
curry/R/scaffold.R
curry/README.md
curry/MD5
curry/DESCRIPTION
curry/man
curry/man/partial.Rd
curry/man/tail_curry.Rd
curry/man/curry.Rd