cache() method - should it cache on popFront() or on first call to front()

aliak something at something.com
Tue Feb 11 12:49:06 UTC 2020


On Monday, 10 February 2020 at 10:43:33 UTC, Piotr Mitana wrote:
> I have recently found std.algorithm.iteration.cache() 
> function's behavior a little bit confusing. I'll demonstrate it 
> with this example:
>
> [...]

Hi! Nice catch! I'm not sure if the behaviour is intentional (it 
sounds off). So maybe add this to the issue tracker? You can add 
it here: https://issues.dlang.org/


More information about the Digitalmars-d mailing list