August 09, 2015 Re: Removing elements from dynamic array | ||||
---|---|---|---|---|
| ||||
Posted in reply to drug | 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.
|
Copyright © 1999-2021 by the D Language Foundation