[Issue 16375] std.range.recurrence should be lazy

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Dec 27 05:10:10 PST 2016


https://issues.dlang.org/show_bug.cgi?id=16375

greenify <greeenify at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |greeenify at gmail.com
            Summary|Computing finite ranges     |std.range.recurrence should
                   |with std.range.recurrence   |be lazy

--- Comment #1 from greenify <greeenify at gmail.com> ---
> But it turns out recurrence does not work with finite ranges when you access the last element.


So it should be lazy in regards to popFront() doing no extra work.

--


More information about the Digitalmars-d-bugs mailing list