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

Reply via email to