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.