For some reason I cannot remove an element from a DList. I tried several range approaches but to no avail. I'm a noob.

In the end I did this:

```
private void removeFromWaitingQueue(uint jid) {
    auto arr = waitingQueue[].array;
    arr = arr.remove!(job => job.jid == jid);
    waitingQueue.clear();
    foreach(job; arr) {
        waitingQueue.insertBack(job);
    }
}
```

Any hints?

/J

Reply via email to