remove element(s) from dyn array

spir denis.spir at gmail.com
Fri Nov 19 05:11:53 PST 2010


Hello,


* What is the D-idiomatic way to remove an element from a dynamic array?

* Ditto, for a slice, but with the 2 variants expression vs statement:
	a.removeSlice(i1, i2);
	a2 = a1.removeSlice(i1, i2);

* Can I rely on
	a.length = a.length - 1
to just remove the last element? If yes, is this considered good practice?


Denis
-- -- -- -- -- -- --
vit esse estrany ☣

spir.wikidot.com



More information about the Digitalmars-d-learn mailing list