opIndex, opSlice, length for joiner?

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 22 05:48:08 PST 2016


On 01/22/2016 07:59 AM, Maverick Chardet wrote:
> And coming back to the specialized version of walkLength: in the case
> where joiner does not implement save, should I still allow the
> specialized version? (and in this case do what: consume the range, make
> a copy of "this" and hope for the best, something else?)
>
> Maverick Chardet

walkLength is what walkLength does: it accepts even an input range and 
has the discretion to consume it. So let them eat cake. -- Andrei



More information about the Digitalmars-d mailing list