Removing multiple elements from array

aldanor i.s.smirnov at gmail.com
Fri Dec 20 16:47:02 PST 2013


Is there an efficient method to remove elements with multiple 
(compile-time-unknown) indices from an array? I currently do 
something like

		if (!index.empty)
			foreach (i; index.sort.reverse)
				a = a.remove(i);

... which looks a bit awkward.


More information about the Digitalmars-d-learn mailing list