if you want to do this, yes:
julia> a=Dict("A"=>1, "B"=>2)
Dict{ASCIIString,Int64} with 2 entries:
"B" => 2
"A" => 1
julia> around_a=Dict("A"=>3, "B"=>a)
Dict{ASCIIString,Any} with 2 entries:
"B" => Dict("B"=>2,"A"=>1)
"A" => 3
julia> if (around_a["B"]["A"] == 1)
delete!(around_a["B"],"A");
end
julia> around_a
Dict{ASCIIString,Any} with 2 entries:
"B" => Dict("B"=>2)
"A" => 3
On Friday, August 14, 2015 at 12:07:28 PM UTC-4, Ian Butterworth wrote:
>
> I have a dict containing both key+value pairs, and key+[array of dict]
> pairs.
>
> Can I use filter! to remove the entire parent dict if condition in child
> is met?
>
> i.e.
>
> If measurements[uniqueentrykey]["studyid"] == "bad study" then remove
> measurements[uniqueentrykey]
>
> Thanks
>