Object containing utility methods for working with functions in the context of mathematical or computational expressions. The ExpressionFunction object provides helpers to lift operations between Field types to operations between Valuable types.
Lifts a function from Field => Field to a function that maps Valuable => Valuable. The function transforms an input Valuable into another Valuable by applying the provided Field => Field function, handling various types of Valuable instances through pattern matching.
Lifts a function from Field => Field to a function that maps Valuable => Valuable. The function transforms an input Valuable into another Valuable by applying the provided Field => Field function, handling various types of Valuable instances through pattern matching.
NOTE this may be temporary, since we should be able to use the Valuable without resorting to the old Field type.
Value parameters
f
a function that maps a Field to a transformed Field, which will be used to derive the resulting Valuable from the input.
Attributes
Returns
a function that takes a Valuable as input and returns a transformed Valuable after applying the underlying Field => Field transformation.