std.copy (to multiple output ranges),
Robert Schadek
realburner at gmx.de
Mon Jan 27 13:51:15 PST 2014
On 01/27/2014 07:59 PM, Justin Whear wrote:
> On Mon, 27 Jan 2014 15:44:43 +0100, Robert Schadek wrote:
>
>> I'm searching the docs for something similar to:
>> copy(someInputRange, firstOutputRange, secondOutputRange, ....);
>> I know how to write it by hand, but I'm suspecting that something like
>> this is already in phobos.
>>
>> And secondly, is there some function that gives me a forward range to
>> some input range?
> Curiously, copy doesn't implement multiple output ranges. I don't think
> there's any reason it couldn't. I think an enhancement request is in
> order.
thats what I thought
>
> Turning an InputRange into a ForwardRange implies buffering,
> std.array.array is a general solution.
More information about the Digitalmars-d-learn
mailing list