Transforms a string representing an expression into a unary function. The string must either use symbol name a as the parameter or provide the symbol via the parmName argument.
a string or a callable
the name of the parameter if fun is a string. Defaults to "a".
If fun is a string, a new single parameter function
If fun is not a string, an alias to fun.
// Strings are compiled into functions: alias isEven = unaryFun!("(a & 1) == 0"); assert(isEven(2) && !isEven(1));
See Implementation
Transforms a string representing an expression into a unary function. The string must either use symbol name a as the parameter or provide the symbol via the parmName argument.