Re: How to delete element from array container or dlist?

2018-03-18 Thread Andrey Kabylin via Digitalmars-d-learn
On Sunday, 18 March 2018 at 15:32:47 UTC, Michael wrote: 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) { subscriber

How to delete element from array container or dlist?

2018-03-18 Thread Andrey Kabylin via Digitalmars-d-learn
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); }