how to sort the container Array from std.container
ag0aep6g
anonymous at example.com
Fri Jun 8 11:36:11 UTC 2018
On 06/08/2018 10:52 AM, Flaze07 wrote:
> ah...well thank you, well...I did finds another way, but it is probably
> better to use linearRemove
> I used
> arr = make!( Array!uint )( remove( arr[], 2 );
> so linearRemove is probably better
Instead of creating a new array, you could update the length of the
existing one:
arr.length = remove(arr[], 2).length;
But linearRemove is probably clearer.
More information about the Digitalmars-d-learn
mailing list