Are these functions/closures examples:
function main() a = 1.0 b = 5.0 function f1(t) return a * t + b end f2(t) = a * t + b f3 = t -> a * t + b solver(f1, f2, f3) return nothing end
the same with respect to performance?
Is this correct:
- f1 is a function.
- f2 is a function (?)
- f3 is a closure.
In the solver function, if we evaluate each function, they will have the same performance?