Removing elements from dynamic array

Reflexive via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 9 14:27:16 PDT 2015


On Sunday, 9 August 2015 at 20:38:05 UTC, drug wrote:
> 09.08.2015 23:22, Reflexive пишет:
>>
> Try to use
> this.sabotarray = this.sabotarray.remove(id_card);
>
> remove() removes element(s) but doesn't change length of 'old' 
> array. To get new length you should use 'new' array that 
> returned from remove(). In this case I get rid of two excessive 
> kings in cards.

Thank you to both anonymous and drug, that was the solution.


More information about the Digitalmars-d-learn mailing list