std.copy (to multiple output ranges),
Justin Whear
justin at economicmodeling.com
Mon Jan 27 10:59:04 PST 2014
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.
Turning an InputRange into a ForwardRange implies buffering,
std.array.array is a general solution.
More information about the Digitalmars-d-learn
mailing list