On 6/4/2013 5:26 AM, Andrei Alexandrescu wrote:
The downside of that is reinventing everything. I haven't looked at the code
yet, but std.range has http://dlang.org/phobos/std_range.html#cycle which
implements a circular buffer.

cycle only reads from a circular buffer. CircularBuffer can be filled as well as emptied at the same time (it has a put() method).

Reply via email to