Two chunks but No allocation

Salih Dincer salihdb at hotmail.com
Thu Mar 28 23:26:41 UTC 2024


On Thursday, 28 March 2024 at 23:08:54 UTC, rkompass wrote:
> You can drop and take from the folded values range.
>
> I got `[1, 0.666667, 0.625, 0.619048, 0.618182, 0.618056, 
> 0.618037, 0.618034, 0.618034, 0.618034]` from the above code.

Thank you so much...

I solved the problem: r.back doesn't work because recurrence() 
runs forever and you need to use it with take. In other words, 
the range functions up to the map must have members such as 
length() and opSlice().

SDB at 79


More information about the Digitalmars-d-learn mailing list