Remove instance from array

Jolly James via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 5 10:07:14 PDT 2017


On Wednesday, 5 July 2017 at 16:55:43 UTC, bachmeier wrote:
> On Wednesday, 5 July 2017 at 16:04:16 UTC, Jolly James wrote:
>
>> Here in D everything looks like climbing mount everest. When 
>> you ask how to use D's containers you are recommended to use 
>> dynamic arrays instead. When you look at the docs for 
>> std.algorithm, e.g. the .remove section, you get bombed with 
>> things like 'SwapStrategy.unstable', asserts and tuples, but 
>> you aren't told how to simply remove 1 specific element.
>
> If you feel that there is a problem with the docs, you should 
> file a bug: https://dlang.org/bugstats.php
>
> The documentation is still not perfect, but the only way to 
> improve it is to file bugs when you see something that needs 
> fixing.

unfortunately, it's not that the docs would be wrong or something 
that can be easily corrected. Nope, the docs do everything right, 
they show you what the existing things do. But what they don't do 
is how to get stuff done. imho some additional, useful guides 
would be nice.


More information about the Digitalmars-d-learn mailing list