I’m using IJulia Jupyter notebook with Julia 1.3.1
Say I define the following function:
function r(x)
@show b
@show a
a = 1+x+b
return a
end
And if I run the code below:
a = 5
b = 4
r(1)
I will get the output with an error:
b = 4
UndefVarError: a not defined
Could you please explain why @show b
works while @show a
doesn’t?
Thank you!