Transience of .front in input vs. forward ranges
Mehrdad
wfunction at hotmail.com
Fri Nov 9 15:05:15 PST 2012
On Friday, 9 November 2012 at 20:22:10 UTC, Jonathan M Davis
wrote:
> On Friday, November 09, 2012 14:52:20 deadalnix wrote:
>> So my question is, how this duplication can be avoided ? If it
>> can,
>> .peekFront is definitively the way to go. But if it can't,
>> this seems
>> like a really problematic point.
>
> In most cases, it still won't be a problem. How much in the way
> of code is generally in front?
Quite a ton, if it's calculated lazily.
More information about the Digitalmars-d
mailing list