Replace values of Dictionary subset

For mutating the dict.
Here is a one-liner using filter_set as keys

foreach(x->setindex!(dict, 1,x), filter_set)

Otherwise, I don’t think there is anything wrong with a simple for-loop:

for subset_key in filter_set 
    dict[subset_key] = 1
end
2 Likes