D-Programming-Language/phobos — pull request #772 by jpf91 (2012-09-04 10:55:11+00:00)
Title: Add copyInto to std.algorithm

Add copyInto as discussed on newsgroup.
copyInto should be used to copy InputRanges into OutputRanges. Contrary to std.algorithm.copy the target parameter is passed by reference. This allows OutputRanges which keep state to work (e.g. std.array.Appender, std.digest).

Suggestions are welcome. I also wonder whether the InputRange should be passed by ref or by value?

![Test Results](https://dtestbadge.appspot.com)