Examples
Basic Examples (2)
Apply a list of functions to some arguments:
ThroughOperator can be mapped easily:
Scope (4)
ThroughOperator works with other heads as well:
Define an operator that generates an Association with function values:
Compute a number of booleans for a number use And to test if they are all True:
This can be achieved with the 2-argument form as well:
Note that only the necessary functions are evaluated:
The 2-argument form of ThroughOperator is convenient for functions that would evaluate prematurely in the 1-argument form:
Other functions will work correctly in the 1-argument form but issue messages:
These messages can be avoided with the 2-argument form:
Publisher
Sjoerd Smit
Version History
-
1.0.1
– 19 December 2022
-
1.0.0
– 13 December 2022
Related Resources