How can I filter a
NamedTuple based on a criteria applied to only one of its fields? For example
NT = (id=[1,2,3], val=[10,11,12]) NT_filtered = filter(x -> x.id == 2, NT) ## doesn't work
and I’m hoping for the filter to return
NT_filtered such that
NT_filtered == (id=, val=).