std.range.chunks with only an InputRange

Seb via Digitalmars-d digitalmars-d at puremagic.com
Mon Mar 14 10:41:06 PDT 2016


On Monday, 14 March 2016 at 17:38:45 UTC, Tamas wrote:
> I just run into this. Would be nice to have this! There's no 
> reason why chunks should only work on ForwardRanges.

I opened a PR for this: 
https://github.com/D-Programming-Language/phobos/pull/4060
However I guess a proper library solution would be to extend 
`cache` to turn an InputRange into a ForwardRange (as suggested).


More information about the Digitalmars-d mailing list