For example:
function main()
function doit()
A = ones(Int, 2)
return A
end
doit()
display(A)
A = [1, 2, 3]
display(A)
doit()
display(A)
Also what if the nested function has two or three layers, how can we return local variable values into main or save them into main?