Circular Buffer

bearophile bearophileHUGS at lycos.com
Mon Feb 10 03:33:54 PST 2014


Russel Winder:

>This really needs to get onto the D website somewhere.

retro+cycle is very simple code, you can also combine them:

alias retroCycle = compose!(cycle, retro);

Ranges and algorithms can be combined together in so many ways 
:-) For an imperative/OO programmer writing code based on lazy 
ranges and higher order functions is a new kind of programming 
that should be learnt patiently, but it's not hard and it doesn't 
contain many low-level pitfalls :-)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list