Julia | Check if Dictionary Has Key
Use the haskey
function:
d = Dict(1 => 10)
Dict{Int64,Int64} with 1 entry:
1 => 10
haskey(d, 1) #true
julia> haskey(d, 2) #false
# source: https://discourse.julialang.org/t/tell-if-a-key-is-present-in-a-dict/39587/2
Resources: