as_function function

Convert <epiparameter> or NULL to function