Apply flat list of indices to nested list

Is there a way to apply a flat list of indices to a nested list?

If I have:
[0,1,2,5,12,18,22]

Any my nested list is:
[[a,b,c],[b,c,**d**],[a,b,c],[a,b,c,e],[a,b,c],[c,d,f],[c,d,e,g]]

I’m using Lists.DuplicateItemIndicies to get unique and duplicate indices but I couldn’t get it to work on my list of 666 items without flattening it first. Is there a way to apply the output of that node to the original nested list?

Not sure what you exactly need in the end but hope this points you in the right direction.

Solution.dyn (26.5 KB)