gestalt - Tools for Making and Combining Functions
Provides a suite of function-building tools centered around a (forward) composition operator, %>>>%, which extends the semantics of the 'magrittr' %>% operator and supports 'Tidyverse' quasiquotation. It enables you to construct composite functions that can be inspected and transformed as list-like objects. In conjunction with %>>>%, a compact function constructor, fn(), and a partial-application constructor, partial(), are also provided; both support quasiquotation.
Last updated 2 years ago
anonymous-functionsfunction-compositionpartial-applicationquasiquotation
5.53 score 38 stars 18 scripts 287 downloadsvaladdin - Functional Input Validation
A set of basic tools to transform functions into functions with input validation checks, in a manner suitable for both programmatic and interactive use.
Last updated 1 years ago
data-validationinput-validationtype-safety
5.39 score 33 stars 15 scripts 170 downloadsnofrills - Low-Cost Anonymous Functions
Provides a compact variation of the usual syntax of function declaration, in order to support tidyverse-style quasiquotation of a function's arguments and body.
Last updated 3 years ago
anonymous-functionscurryinglambda-functionspartial-functionsquasiquotation
4.30 score 40 stars 7 scripts 174 downloadsdub - Unpacking Assignment for Lists via Pattern Matching
Provides an operator for assigning nested components of a list to names via a concise pattern matching syntax. This is especially convenient for assigning individual names to the multiple values that a function may return in the form of a list, and for extracting deeply nested list components.
Last updated 6 years ago
pattern-matchingunpacking-assignment
3.70 score 10 stars 4 scripts 125 downloads