Pre-process tablefun argument.
preprocessTablefun(fun)
fun
function or lambda formula
a function in any case