jmdavis/phobos — comment on commit d138cf2f444bd08a4ac154d3f67bbf94b8a253da
File: std/container.d line 4827
By schveiguy:

I'm curious, do we need to go through this translation? I mean, why not just do the remove algorithm inside the foreach loop? And if we do, wouldn't this work at this point:

return removeKey(toRemove[]);