You can simplify things if you are willing to accept Julia anonymous functions as input parameters. For example, a minimal example is:
evaluate(f, a) = f(a)
a = 13.0
evaluate(x -> x^2, a)
You can simplify things if you are willing to accept Julia anonymous functions as input parameters. For example, a minimal example is:
evaluate(f, a) = f(a)
a = 13.0
evaluate(x -> x^2, a)