compileFunction1OrNull
Tries to compile a given string expression into a single-parameter function. Returns the compiled function if successful, or null
if an error occurs during compilation. Errors are handled using the provided onError callback.
Return
A single-parameter function that takes an argument of type T0 and evaluates the expression to return a result of type R, or null
if the compilation fails.
Parameters
The type of the single parameter that will be passed to the compiled function.
The return type of the compiled function.
The string representation of the expression to be compiled.
The name of the required parameter in the expression.
A lambda function to resolve constants in the expression by their names. Defaults to a function returning null for all names.
A set of function extensions that can be used within the expression. Defaults to an empty set.
A callback function that will be invoked when an error occurs during compilation. The error is passed to this function.