fcp
From MaRDI portal
Software:5979239
Function Composition
Last update: 5 December 2023
Software version identifier: 0.1.0
Copyright license: GNU General Public License, version 3.0, GNU General Public License, version 2.0
A function composition operator to chain a series of calls into a single function, mimicking the math notion of (f o g o h)(x) = h(g(f(x))). Inspired by 'pipeOp' ('|>') since R4.1 and 'magrittr pipe' ('%>%'), the operator build a pipe without putting data through, which is best for anonymous function accepted by utilities such as apply() and lapply().