I need help about constructing functions inside functions that use variables that “seems” global:
function a() aux = Float64 b = ()->begin push!(aux, rand()) end b() b() return aux end julia> a()
I know that are other (possibly better) ways to do that, but using those variables inside those functions like they were globals will make my life very easy. Question: is there any performance penalty in this case? Where can I read more about this use case?