[phobos] Improvement of stream

Andrei Alexandrescu andrei at erdani.com
Mon Jul 5 10:00:08 PDT 2010


On 07/05/2010 11:44 AM, Ellery Newcomer wrote:
> On 07/05/2010 11:14 AM, Michel Fortin wrote:
>> Le 2010-07-05 à 1:37, Andrei Alexandrescu a écrit :
>>
>>> - The Seekable idea is good, I was thinking of it for a while. It
>>> expresses a range that is not as cheap for random access as a
>>> random-access range, but also that makes random seeking possible.
>>> What kind of algorithms could use Seekable?
>> Well, you might want to skip over certain parts of a stream.
>
> like 'drop'

We have popFrontN in std.range that could detect and take advantage of 
the existence of a seek() function.

Andrei


More information about the phobos mailing list