Pre-process function argument.
preprocessFunction(fun, name)
fun
function or lambda formula
name
function name
a function in any case