How to force evaluation of range?

Xinok via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Feb 12 18:06:35 PST 2016


On Saturday, 13 February 2016 at 01:11:53 UTC, Nicholas Wilson 
wrote:
> ...
>
> If you just want the range evaluated use walkLength

It might work in this case, but in general this won't work for 
any range which defines .length as a member. In that case, 
walkLength will simply return .length of that range.


More information about the Digitalmars-d-learn mailing list