Higher Order Range Pattern

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 22 08:25:11 PDT 2015


On 6/22/15 11:04 AM, Dennis Ritchie wrote:
> Hi,
> I recently came across the following code:
> http://wiki.dlang.org/Higher_Order_Range_Pattern
>
>
> I can't understand why the properties and methods of the structure are
> called in the correct order.
> Why are the property `back()` and the method `popBack()` are not called
> even once?

Because std.algorithm.equal does not use back or popBack.

> In general, please explain how it all works.

I have a feeling you are not understanding something. This code is 
pretty straightforward, I don't know what else to explain about it.

-Steve


More information about the Digitalmars-d-learn mailing list