I recently returned to some code I wrote last year, where I used the isdefined()
function. The old syntax was:
julia> x = 1
julia> isdefined(:x)
true
julia> isdefined(:y)
false
But since then isdefined()
has changed and now takes two parameters, and I really can’t figure out from the help file what I’m meant to be adding to make this work. In this particular case a
is an Int
, but it could be anything.
How should I be using this function correctly?