How to delete element from array container or dlist?
Michael
michael at toohuman.io
Sun Mar 18 15:30:12 UTC 2018
On Sunday, 18 March 2018 at 14:58:52 UTC, Andrey Kabylin wrote:
> In DList we have method remove, but I can't understand how this
> method works, I want write somethink like this:
>> void unsubscribe(EventsSubscriber subscriber) {
>> subscribers.remove(subscriber);
>> }
The remove function seems to expect an index, not an element.
More information about the Digitalmars-d-learn
mailing list