Varying parameter in a function

@ctkelley

He means to use and return an anonymous function instead of a function block. The example in the julia docs show exactly the use case in the inital post.

Julia Functions · The Julia Language

Basically to do the following

f(y) = (x) ->x+y

g = f(7)

g(2)
>>> 9
1 Like