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

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.

Browse man pages Browse package API and functions Browse package files

AuthorThomas Lin Pedersen
Date of publication2016-09-28 22:18:23
MaintainerThomas Lin Pedersen <thomasp85@gmail.com>
LicenseGPL (>= 2)
Version0.1.1
URL https://github.com/thomasp85/curry
Package repositoryView on CRAN
InstallationInstall the latest version of this package by entering the following in R:
install.packages("curry")

Man pages

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

Functions

\%-<\% Man page
\%<\% Man page
\%><\% Man page
apply_args Source code
as.scaffold Source code
curry Man page Source code
getArgs Source code
is.scaffold Source code
is_missing_arg Source code
partial Man page Source code
scaffold Source code
tail_curry Man page Source code

Files

NAMESPACE
R
R/tail_curry.R
R/utils.R
R/curry.R
R/partial.R
R/scaffold.R
README.md
MD5
DESCRIPTION
man
man/partial.Rd
man/tail_curry.Rd
man/curry.Rd
curry documentation built on May 19, 2017, 8:12 a.m.