D-Programming-Language/phobos — pull request #905 by monarchdodra (2012-10-28 10:28:41+00:00)
Title: strip and sameTail

The original change was:

Inside `stripLeft`, if the entire word is white, then the returned slice is an empty slice, but one which coincides with the *end* of the original slice (sameTail).

This required 2 minor changes in array.d:

1. Making the arguments of `sameHead` pass by value, so that it works with R-values: there is not much to be gained passing slices by const ref.
2. Adding `sameTail`, which was strangely missing.