Printing the body of a defined function

If I define a function as follows:

f(x,y) = x^2 + y

Is there a way that I acces the body of the function without evaluating it? As in, I would like to do print(f) and for it to show "x^2 + y"

2 Likes

https://github.com/JuliaLang/julia/issues/2625

1 Like

See https://github.com/timholy/CodeTracking.jl
Maybe you’ll find it useful

2 Likes