On Monday, 25 June 2012 at 18:29:45 UTC, Bernard Helyer wrote:
On Monday, 25 June 2012 at 17:43:01 UTC, Mehrdad wrote:
In that case, how do you make a random-access wrapper around an input range?

You don't. If you could, they wouldn't be an input range.


Wait, what?

I don't see why you _shouldn't_ be able to create a random-access wrapper that lazily reads as much data as it needs to, in order to satisfy a random read.

i.e. I see no obstacle, at least conceptually, other than the fact you're saying you can't do it.

Reply via email to