D-Programming-Language/phobos — pull request #1032 by Poita (2012-12-25 19:13:04+00:00)
Title: Simplified std.array.join with separator.

Previously, std.array.join with a separator would check whether it needed to add the separator on each iteration of the loop. With this change, the check is unnecessary because the first element is appended before the loop, then the loop just adds the separator and next element each iteration.

This improves the code significantly in the case of a non-forward RoR because we don't need to know the length anymore. It's simpler, and will be slightly faster.