Function operators (FOs) seem like a great way to increase productivity and make the best of R's functional programming chops, perhaps especially in package development.
Keeps functions nice and small, without having to built a gazillion wrappers and passing around arguments like a crazy person.
A function operator is a function that takes one (or more) functions as input and returns a function as output.
(More details here).
Ideally, of course, I don't want to write many FOs myself, but increase my usage of existing FOs from other packages.
My questions are:
- What function operators do you recommend and/or find useful?
- What good sources (packages?) for function operators are out there?
- If this is a stupid question or a bad idea (... "pointless programming"), please set me straight.
For example, I'm looking for an FO which captures file outputs of functions.