Can a function returns a partial function?

You should not need eval for this. A closure is fine, eg

f(x, y, z) = x + y + z
y, z = 2, 3
g = x -> f(x, y, z)
g(1)
1 Like