Unexpected inefficiency of minIndex

Alexibu alex at sunopti.com
Fri Mar 22 07:31:21 UTC 2024


On Friday, 22 March 2024 at 07:18:01 UTC, Alexibu wrote:
> I didn't know map was lazy...
> I could put .array between map and minIndex but that defeats 
> the purpose of ranges.

OK found the cache algorithm, that does this.


More information about the Digitalmars-d-learn mailing list