Is there library to do in place modification of dynamic arrays?

Brother Bill brotherbill at mail.com
Fri Dec 19 12:21:16 UTC 2025


I notice that std.algorithm and std.algorithm.mutate return a new 
dynamic array.
Are there any libraries out there that do modifications in place?

For example, for dynamic array items

```
int[] items = [ 10, 20, 30, 40 ];

// Library call to do in place mutations of items dynamic array, 
without any new allocations
items.remove(1);

assert(items == [10, 30, 40];
assert(items.length == 3);
```


More information about the Digitalmars-d-learn mailing list