std.range.chunk without length

bearophile bearophileHUGS at lycos.com
Thu Feb 13 06:45:41 PST 2014


Stephan Schiffels:

> It would be actually easy to implement chunks without the 
> "save" function, by using an internal buffer, which would 
> however make this algorithm's memory burden linear in the chunk 
> size. Would that be acceptable?

I think it's acceptable. But perhaps you need to add one more 
optional argument for the buffer :-)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list