partstodelete = {{1, 2}, {1, 5}, {1, 6}.. {2, 21}, {2, 28}, {2, 35}..};
Delete[data, partstodelete]
deletes parts partstodelete
from data
.
How do I just get a list of the parts (i.e what is deleted; or the complement of data
and Delete[data, partstodelete]
).
Seems like it should be straightforward using Part
, but data[[partstodelete]]
does not work (Part
doesn't seem to allow depth of part specifications if giving it a list?)
Extract
orComplement
? $\endgroup$