How to remove an element from a dynamic array with given index ?

Vinod K Chandran kcvinu82 at gmail.com
Mon May 2 22:04:11 UTC 2022


On Monday, 2 May 2022 at 20:50:17 UTC, H. S. Teoh wrote:
>
>> should be in the same order. How to do it ?
>
> 	int[] data = [ 10, 20, 30, 40, 50 ];
> 	data = data.remove(2);
> 	assert(data == [ 10, 20, 40, 50 ]);
>
>
> T
>
Thanks a lot.



More information about the Digitalmars-d-learn mailing list