Package: curry 0.1.1
curry: Partial Function Application and Currying 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.
Authors:
curry_0.1.1.tar.gz
curry_0.1.1.zip(r-4.5)curry_0.1.1.zip(r-4.4)curry_0.1.1.zip(r-4.3)
curry_0.1.1.tgz(r-4.4-any)curry_0.1.1.tgz(r-4.3-any)
curry_0.1.1.tar.gz(r-4.5-noble)curry_0.1.1.tar.gz(r-4.4-noble)
curry_0.1.1.tgz(r-4.4-emscripten)curry_0.1.1.tgz(r-4.3-emscripten)
curry.pdf |curry.html✨
curry/json (API)
# Install 'curry' in R: |
install.packages('curry', repos = c('https://thomasp85.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/thomasp85/curry/issues
Last updated 8 years agofrom:e68ed51ec8. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Oct 31 2024 |
R-4.5-win | OK | Oct 31 2024 |
R-4.5-linux | OK | Oct 31 2024 |
R-4.4-win | OK | Oct 31 2024 |
R-4.4-mac | OK | Oct 31 2024 |
R-4.3-win | OK | Oct 31 2024 |
R-4.3-mac | OK | Oct 31 2024 |
Exports:%-<%%<!%%<?%%<%%><%curryCurrypartialset_defaultstail_curry
Dependencies:
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Curry a function from the start | %<% curry |
Apply arguments partially to a function | %><% partial |
Change the defaults of a function | %<?% set_defaults |
Perform strict currying of a function | %<!% Curry strict_curry |
Curry a function from the end | %-<% tail_curry |