@AndrejMitrovic:

```D
    for (; !range.empty; range.popBack())
    {
        if (range.back != element) break;
    }
````