Loops versus ranges

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Dec 19 04:20:34 PST 2014


anon:

> Changed to
>     return data.map!(n => foo2(data, i + 1, 
> max)).cache.joiner.array;
> then it produced the same result as array version. 
> `map.cache.join` resulted in 597871.

This is close to tell what the cause is :-)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list