fc: A Package for Generalized Function Composition Using Standard Evaluation
Xiaofei Wang, Michael John Kane

TL;DR
The paper introduces the fc R package that enables efficient, standard evaluation-based function composition without storing intermediate values, improving runtime performance over existing methods.
Contribution
The fc package offers a novel approach to function composition in R, streamlining workflows and enhancing performance compared to magrittr and purrr.
Findings
Favorable runtime performance of fc compared to other implementations
Seamless composition without intermediate value storage
Simplifies function chaining in R
Abstract
In this article, we present a new R package fc that provides a streamlined, standard evaluation-based approach to function composition. Using fc, a sequence of functions can be composed together such that returned objects from composed functions are used as intermediate values directly passed to the next function. Unlike with magrittr and purrr, no intermediate values need to be stored. When benchmarked, functions composed using fc achieve favorable runtimes in comparison to other implementations.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsComputer Graphics and Visualization Techniques · Numerical Methods and Algorithms · Parallel Computing and Optimization Techniques
